fix(core): update
This commit is contained in:
parent
905f7d189f
commit
b61118c950
10
test/test.ts
10
test/test.ts
@ -13,22 +13,22 @@ tap.test('should create a valid smartbucket', async () => {
|
|||||||
testSmartbucket = new smartbucket.SmartBucket({
|
testSmartbucket = new smartbucket.SmartBucket({
|
||||||
accessKey: testQenv.getEnvVarOnDemand('S3_KEY'),
|
accessKey: testQenv.getEnvVarOnDemand('S3_KEY'),
|
||||||
accessSecret: testQenv.getEnvVarOnDemand('S3_SECRET'),
|
accessSecret: testQenv.getEnvVarOnDemand('S3_SECRET'),
|
||||||
endpoint: 'ams3.digitaloceanspaces.com'
|
endpoint: 'fra1.digitaloceanspaces.com'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.skip.test('should create testbucket', async () => {
|
tap.skip.test('should create testbucket', async () => {
|
||||||
await testSmartbucket.createBucket('smartbucket');
|
await testSmartbucket.createBucket('testzone');
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.skip.test('should remove testbucket', async () => {
|
tap.skip.test('should remove testbucket', async () => {
|
||||||
await testSmartbucket.removeBucket('pushrocks-smartbucket');
|
await testSmartbucket.removeBucket('testzone');
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should get a bucket', async () => {
|
tap.test('should get a bucket', async () => {
|
||||||
myBucket = await testSmartbucket.getBucketByName('smartbucket');
|
myBucket = await testSmartbucket.getBucketByName('testzone');
|
||||||
expect(myBucket).to.be.instanceOf(smartbucket.Bucket);
|
expect(myBucket).to.be.instanceOf(smartbucket.Bucket);
|
||||||
expect(myBucket.name).to.equal('smartbucket');
|
expect(myBucket.name).to.equal('testzone');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Fast operations
|
// Fast operations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user