fix(core): update

This commit is contained in:
2022-03-21 08:30:09 +01:00
parent e3fa407c1c
commit 9145cc890c
7 changed files with 17730 additions and 516 deletions

View File

@ -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();