mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
fix bug with redundant play/pause events, fix spec, tweak current moderator css
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user