fix(core): update

This commit is contained in:
Philipp Kunz 2022-01-24 04:39:12 +01:00
parent ad95154284
commit b86bd61cbf
4 changed files with 19691 additions and 3693 deletions

23356
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,20 +12,20 @@
"build": "(tsbuild --web)" "build": "(tsbuild --web)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.25", "@gitzone/tsbuild": "^2.1.29",
"@gitzone/tstest": "^1.0.52", "@gitzone/tstest": "^1.0.60",
"@pushrocks/tapbundle": "^3.2.9", "@pushrocks/tapbundle": "^4.0.0",
"@types/node": "^14.11.10", "@types/node": "^17.0.10",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest-interfaces": "^1.0.15", "@apiglobal/typedrequest-interfaces": "^1.0.15",
"@pushrocks/lik": "^4.0.17", "@pushrocks/lik": "^5.0.0",
"@pushrocks/smartjson": "^4.0.5", "@pushrocks/smartjson": "^4.0.6",
"@pushrocks/smartpromise": "^3.1.3", "@pushrocks/smartpromise": "^3.1.6",
"@pushrocks/smartrx": "^2.0.19", "@pushrocks/smartrx": "^2.0.20",
"idb": "^5.0.7" "idb": "^7.0.0"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"

View File

@ -5,7 +5,7 @@ let testTypedrequestcache: webstore.TypedrequestCache;
tap.test('first test', async () => { tap.test('first test', async () => {
testTypedrequestcache = new webstore.TypedrequestCache('https://test.lossless.com/typedrequest') testTypedrequestcache = new webstore.TypedrequestCache('https://test.lossless.com/typedrequest')
expect(testTypedrequestcache).to.be.instanceOf(webstore.TypedrequestCache); expect(testTypedrequestcache).toBeInstanceOf(webstore.TypedrequestCache);
}); });
tap.start(); tap.start();

View File

@ -8,12 +8,12 @@ tap.test('first test', async () => {
dbName: 'mytest-db', dbName: 'mytest-db',
storeName: 'mytest-store', storeName: 'mytest-store',
}); });
expect(testWebstore).to.be.instanceOf(webstore.WebStore); expect(testWebstore).toBeInstanceOf(webstore.WebStore);
}); });
tap.test('should allow storing a string', async () => { tap.test('should allow storing a string', async () => {
await testWebstore.set('mystring', 'heythere'); 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 () => { 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 () => { tap.test('should correctly check the existence of keys', async () => {
const resultNotThere = await testWebstore.check('notThere'); const resultNotThere = await testWebstore.check('notThere');
const resultThere = await testWebstore.check('testProp1'); const resultThere = await testWebstore.check('testProp1');
expect(resultNotThere).to.be.false; expect(resultNotThere).toBeFalse();
expect(resultThere).to.be.true; expect(resultThere).toBeTrue();
}); });
tap.start(); tap.start();