fix(core): update
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartdelay from '@pushrocks/smartdelay';
|
||||
import early = require('../ts/index');
|
||||
|
||||
import * as early from '../ts/index.js'
|
||||
|
||||
tap.test('.start()', async () => {
|
||||
process.env.CLI_CALL_MODULENAME = 'early';
|
||||
early.start('early');
|
||||
await smartdelay.delayFor(2000);
|
||||
});
|
||||
@ -17,7 +19,7 @@ tap.test('hrTime Measurement', async () => {
|
||||
await smartdelay.delayFor(1000);
|
||||
let measuredTime = earlyHr.stop();
|
||||
console.log(measuredTime);
|
||||
return expect(measuredTime.milliSeconds).to.be.greaterThan(999);
|
||||
return expect(measuredTime.milliSeconds).toBeGreaterThan(999);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user