File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ module.exports = timerGame;
2525' use strict' ;
2626
2727jest .useFakeTimers ();
28+ jest .spyOn (global , ' setTimeout' );
2829
2930test (' waits 1 second before ending the game' , () => {
3031 const timerGame = require (' ../timerGame' );
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ module.exports = timerGame;
2525' use strict' ;
2626
2727jest .useFakeTimers ();
28+ jest .spyOn (global , ' setTimeout' );
2829
2930test (' waits 1 second before ending the game' , () => {
3031 const timerGame = require (' ../timerGame' );
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ module.exports = timerGame;
2525' use strict' ;
2626
2727jest .useFakeTimers ();
28+ jest .spyOn (global , ' setTimeout' );
2829
2930test (' waits 1 second before ending the game' , () => {
3031 const timerGame = require (' ../timerGame' );
You can’t perform that action at this time.
0 commit comments