fix(core): update

This commit is contained in:
2020-10-12 00:37:50 +00:00
parent d5d3105a98
commit c383b75336
8 changed files with 47 additions and 32 deletions

View File

@@ -13,7 +13,7 @@ tap.test('should create a valid smartbucket', async () => {
testSmartbucket = new smartbucket.SmartBucket({
accessKey: testQenv.getEnvVarOnDemand('S3_KEY'),
accessSecret: testQenv.getEnvVarOnDemand('S3_SECRET'),
endpoint: 'fra1.digitaloceanspaces.com'
endpoint: 'fra1.digitaloceanspaces.com',
});
});
@@ -79,7 +79,9 @@ tap.test('should correctly build paths for sub directories', async () => {
tap.test('should list huge file directory', async () => {
const servezoneBucket = await smartbucket.Bucket.getBucketByName(testSmartbucket, 'servezone');
const servezoneBaseDirectory = await servezoneBucket.getBaseDirectory();
const brandfileDirectory = await servezoneBaseDirectory.getSubDirectoryByName('public/brandfiles');
const brandfileDirectory = await servezoneBaseDirectory.getSubDirectoryByName(
'public/brandfiles'
);
const files = await brandfileDirectory.listFiles();
const directories = await brandfileDirectory.listDirectories();
console.log(files);