fix(core): update

This commit is contained in:
2019-10-15 19:23:06 +02:00
parent c333533c63
commit caf0566020
3 changed files with 38 additions and 7 deletions

View File

@ -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();