Skip to content

Commit

Permalink
change other files too
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 18, 2021
1 parent 503abd7 commit 41aa0d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/TimerMocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = timerGame;
'use strict';

jest.useFakeTimers();
jest.spyOn(global, 'setTimeout');

test('waits 1 second before ending the game', () => {
const timerGame = require('../timerGame');
Expand Down
1 change: 1 addition & 0 deletions website/versioned_docs/version-27.0/TimerMocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = timerGame;
'use strict';

jest.useFakeTimers();
jest.spyOn(global, 'setTimeout');

test('waits 1 second before ending the game', () => {
const timerGame = require('../timerGame');
Expand Down
1 change: 1 addition & 0 deletions website/versioned_docs/version-27.1/TimerMocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = timerGame;
'use strict';

jest.useFakeTimers();
jest.spyOn(global, 'setTimeout');

test('waits 1 second before ending the game', () => {
const timerGame = require('../timerGame');
Expand Down

0 comments on commit 41aa0d9

Please sign in to comment.