fix(structure): format

This commit is contained in:
2022-04-14 10:38:14 +02:00
parent 5803ef597f
commit e69ca55a40
8 changed files with 22 additions and 28 deletions

View File

@@ -1,5 +1,3 @@
import * as smartbucket from '@pushrocks/smartbucket';
export {
smartbucket
};
export { smartbucket };

View File

@@ -5,7 +5,7 @@ import * as smarts3 from '../ts/index.js';
let testSmarts3Instance: smarts3.Smarts3;
tap.test('should create a smarts3 instance and run it', async toolsArg => {
tap.test('should create a smarts3 instance and run it', async (toolsArg) => {
testSmarts3Instance = await smarts3.Smarts3.createAndStart({
port: 3000,
cleanSlate: true,
@@ -15,7 +15,9 @@ tap.test('should create a smarts3 instance and run it', async toolsArg => {
});
tap.test('should be able to access buckets', async () => {
const smartbucketInstance = new plugins.smartbucket.SmartBucket(await testSmarts3Instance.getS3Descriptor());
const smartbucketInstance = new plugins.smartbucket.SmartBucket(
await testSmarts3Instance.getS3Descriptor()
);
const bucket = await smartbucketInstance.createBucket('testbucket');
const baseDirectory = await bucket.getBaseDirectory();
await baseDirectory.fastStore('subdir/hello.txt', 'hi there!');
@@ -23,6 +25,6 @@ tap.test('should be able to access buckets', async () => {
tap.test('should stop the instance', async () => {
await testSmarts3Instance.stop();
})
});
tap.start();