fix(core): update
This commit is contained in:
@ -5,7 +5,7 @@ let testTypedrequestcache: webstore.TypedrequestCache;
|
||||
|
||||
tap.test('first test', async () => {
|
||||
testTypedrequestcache = new webstore.TypedrequestCache('https://test.lossless.com/typedrequest')
|
||||
expect(testTypedrequestcache).to.be.instanceOf(webstore.TypedrequestCache);
|
||||
expect(testTypedrequestcache).toBeInstanceOf(webstore.TypedrequestCache);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
@ -8,12 +8,12 @@ tap.test('first test', async () => {
|
||||
dbName: 'mytest-db',
|
||||
storeName: 'mytest-store',
|
||||
});
|
||||
expect(testWebstore).to.be.instanceOf(webstore.WebStore);
|
||||
expect(testWebstore).toBeInstanceOf(webstore.WebStore);
|
||||
});
|
||||
|
||||
tap.test('should allow storing a string', async () => {
|
||||
await testWebstore.set('mystring', 'heythere');
|
||||
expect(await testWebstore.get('mystring')).to.equal('heythere');
|
||||
expect(await testWebstore.get('mystring')).toEqual('heythere');
|
||||
});
|
||||
|
||||
tap.test('should allow storing an object', async () => {
|
||||
@ -33,8 +33,8 @@ tap.test('should overwrite a value', async () => {
|
||||
tap.test('should correctly check the existence of keys', async () => {
|
||||
const resultNotThere = await testWebstore.check('notThere');
|
||||
const resultThere = await testWebstore.check('testProp1');
|
||||
expect(resultNotThere).to.be.false;
|
||||
expect(resultThere).to.be.true;
|
||||
expect(resultNotThere).toBeFalse();
|
||||
expect(resultThere).toBeTrue();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user