fix(core): update

This commit is contained in:
2021-10-06 11:58:36 +02:00
parent 419fe80bde
commit 76768a1307
11 changed files with 14636 additions and 34 deletions

26
test/test.timer.both.ts Normal file
View File

@@ -0,0 +1,26 @@
// tslint:disable-next-line:no-implicit-dependencies
import { expect, tap } from '@pushrocks/tapbundle';
import { Timer } from '../ts/index';
let testTimer: Timer;
tap.test('should create a valid timer', async () => {
testTimer = new Timer(1000);
expect(testTimer).to.be.instanceof(Timer);
});
tap.test('should start timer', async () => {
testTimer.start();
await testTimer.completed;
});
tap.test('should reset a timer', async () => {
testTimer.reset();
testTimer.start();
testTimer.reset();
testTimer.start();
await testTimer.completed;
});
tap.start();