fix(core): update
This commit is contained in:
12
test/test.ts
12
test/test.ts
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user