Skip to content

Commit 41aa0d9

Browse files
committed
change other files too
1 parent 503abd7 commit 41aa0d9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docs/TimerMocks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = timerGame;
2525
'use strict';
2626

2727
jest.useFakeTimers();
28+
jest.spyOn(global, 'setTimeout');
2829

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

website/versioned_docs/version-27.0/TimerMocks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = timerGame;
2525
'use strict';
2626

2727
jest.useFakeTimers();
28+
jest.spyOn(global, 'setTimeout');
2829

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

website/versioned_docs/version-27.1/TimerMocks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = timerGame;
2525
'use strict';
2626

2727
jest.useFakeTimers();
28+
jest.spyOn(global, 'setTimeout');
2829

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

0 commit comments

Comments
 (0)