fix bug with redundant play/pause events, fix spec, tweak current moderator css

This commit is contained in:
AlecM33
2023-04-08 16:01:39 -04:00
parent f1a5df94e2
commit bef8cd8d59
6 changed files with 25 additions and 22 deletions

View File

@@ -21,12 +21,11 @@ describe('ServerTimer', () => {
serverTimer = new ServerTimer(1, 0, 10, logger);
spyOn(global, 'clearTimeout');
serverTimer.runTimer(false).then(() => {
fail();
serverTimer.stopTimer();
expect(clearTimeout).toHaveBeenCalledWith(serverTimer.ticking);
}).catch((e) => {
fail(e);
});
serverTimer.stopTimer();
expect(clearTimeout).toHaveBeenCalledWith(serverTimer.ticking);
});
it('should stop and resume the timer', async () => {