import { expect, tap } from '@pushrocks/tapbundle'; import * as webstore from '../ts/index'; let testWebstore: webstore.WebStore; tap.test('first test', async () => { testWebstore = new webstore.WebStore({ dbName: 'mytestdb', storeName: 'myteststore' }); expect(testWebstore).to.be.instanceOf(webstore.WebStore); }); tap.test('should init the database', async () => { await testWebstore.init(); }); tap.test('should store a value', async () => { await testWebstore.set('testProp1', { wow: 'wowVal' }); console.log(JSON.stringify(await testWebstore.get('testProp1'))); }); tap.start();