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