fix(core): update
This commit is contained in:
parent
f02df7789c
commit
8f6272eca4
@ -15,4 +15,12 @@ tap.test('should start timer', async () => {
|
||||
await testTimer.completed;
|
||||
});
|
||||
|
||||
tap.test('should reset a timer', async () => {
|
||||
testTimer.reset();
|
||||
testTimer.start();
|
||||
testTimer.reset();
|
||||
testTimer.start();
|
||||
await testTimer.completed;
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
@ -62,6 +62,7 @@ export class Timer {
|
||||
|
||||
public pause() {
|
||||
clearTimeout(this.currentTimeout);
|
||||
this.currentTimeout = null;
|
||||
this.pausedAt = TimeStamp.fromTimeStamp(this.startedAt);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user