fix(core): update

This commit is contained in:
2019-10-16 18:12:18 +02:00
parent fbac742db2
commit 34d7ef2686
5 changed files with 172 additions and 9 deletions

View File

@ -30,17 +30,18 @@ tap.test('should get a bucket', async () => {
expect(myBucket.name).to.equal('smartbucket');
});
tap.test('should store data in bucket', async () => {
await myBucket.store('hithere/socool.txt', 'hi there!');
// Fast operations
tap.test('should store data in bucket fast', async () => {
await myBucket.fastStore('hithere/socool.txt', 'hi there!');
});
tap.test('should get data in bucket', async () => {
const fileString = await myBucket.get('hithere/socool.txt');
const fileString = await myBucket.fastGet('hithere/socool.txt');
console.log(fileString);
});
tap.test('should delete data in bucket', async () => {
await myBucket.remove('hithere/socool.txt');
await myBucket.fastRemove('hithere/socool.txt');
});