Skip to content

Commit c1323df

Browse files
ErickWendelljharbMoLow
authored
Apply suggestions from code review
Co-authored-by: Jordan Harband <ljharb@gmail.com> Co-authored-by: Moshe Atlow <moshe@atlow.co.il>
1 parent a8c1ede commit c1323df

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

doc/api/test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ added:
15791579
Enables timer mocking for the specified timers.
15801580

15811581
* `timers` {Array} An optional array containing the timers to mock.
1582-
The currently supported timer values are `'setInterval'`, `'setTimeout'`
1582+
The currently supported timer values are `'setInterval'`, `'setTimeout'`,
15831583
and `'setImmediate'`. If no value is provided, all timers (`'setInterval'`,
15841584
`'clearInterval'`, `'setTimeout'`, `'clearTimeout'`, `'setImmediate'`,
15851585
and `'clearImmediate'`) will be mocked by default.

lib/internal/test_runner/mock/mock_timers.js

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const SUPPORTED_TIMERS = ['setTimeout', 'setInterval', 'setImmediate'];
5252
const TIMERS_DEFAULT_INTERVAL = {
5353
__proto__: null,
5454
setImmediate: -1,
55-
nextTick: -2,
5655
};
5756

5857
class MockTimers {

0 commit comments

Comments
 (0)