fix(core): update
This commit is contained in:
13
test/test.ts
13
test/test.ts
@ -6,6 +6,7 @@ import * as smartbucket from '../ts/index';
|
||||
const testQenv = new Qenv('./', './.nogit/');
|
||||
|
||||
let testSmartbucket: smartbucket.SmartBucket;
|
||||
let myBucket: smartbucket.Bucket;
|
||||
|
||||
tap.test('should create a valid smartbucket', async () => {
|
||||
testSmartbucket = new smartbucket.SmartBucket({
|
||||
@ -15,7 +16,7 @@ tap.test('should create a valid smartbucket', async () => {
|
||||
});
|
||||
});
|
||||
|
||||
tap.skip.test('should create a bucket', async () => {
|
||||
tap.skip.test('should create testbucket', async () => {
|
||||
await testSmartbucket.createBucket('smartbucket');
|
||||
});
|
||||
|
||||
@ -23,4 +24,14 @@ tap.skip.test('should remove testbucket', async () => {
|
||||
await testSmartbucket.removeBucket('pushrocks-smartbucket');
|
||||
});
|
||||
|
||||
tap.test('should get a bucket', async () => {
|
||||
myBucket = await testSmartbucket.getBucketByName('smartbucket');
|
||||
expect(myBucket).to.be.instanceOf(smartbucket.Bucket);
|
||||
expect(myBucket.name).to.equal('smartbucket');
|
||||
});
|
||||
|
||||
tap.test('should store data in bucket', async () => {
|
||||
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user