fix(core): update

This commit is contained in:
2024-06-06 18:26:11 +02:00
parent 81c227fac1
commit 8fcee684fd
9 changed files with 5840 additions and 31947 deletions

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartcls from '../ts/index';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smartcls from '../ts/index.js';
const testSmartcls = new smartcls.SmartCls();
@ -7,9 +7,9 @@ tap.testParallel('should get namespace', async (tools) => {
testSmartcls.run(async () => {
testSmartcls.set('some', 'anything');
await tools.delayFor(1000);
expect(testSmartcls.get('some')).to.equal('anything');
expect(testSmartcls.get('some')).toEqual('anything');
tools.delayFor(200).then(() => {
expect(testSmartcls.get('some')).to.equal('anything');
expect(testSmartcls.get('some')).toEqual('anything');
});
});
});
@ -18,9 +18,9 @@ tap.testParallel('should get namespace with other values', async (tools) => {
testSmartcls.run(async () => {
testSmartcls.set('some', 'otherthing');
await tools.delayFor(500);
expect(testSmartcls.get('some')).to.equal('otherthing');
expect(testSmartcls.get('some')).toEqual('otherthing');
tools.delayFor(200).then(() => {
expect(testSmartcls.get('some')).to.equal('otherthing');
expect(testSmartcls.get('some')).toEqual('otherthing');
});
});
});