Skip to content

Commit

Permalink
test_runner: apply sugestions
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <[email protected]>
Co-authored-by: Moshe Atlow <[email protected]>
  • Loading branch information
3 people committed Aug 30, 2023
1 parent a8c1ede commit 962e14a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ added:
Enables timer mocking for the specified timers.

* `timers` {Array} An optional array containing the timers to mock.
The currently supported timer values are `'setInterval'`, `'setTimeout'`
The currently supported timer values are `'setInterval'`, `'setTimeout'`,
and `'setImmediate'`. If no value is provided, all timers (`'setInterval'`,
`'clearInterval'`, `'setTimeout'`, `'clearTimeout'`, `'setImmediate'`,
and `'clearImmediate'`) will be mocked by default.
Expand Down
1 change: 0 additions & 1 deletion lib/internal/test_runner/mock/mock_timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const SUPPORTED_TIMERS = ['setTimeout', 'setInterval', 'setImmediate'];
const TIMERS_DEFAULT_INTERVAL = {
__proto__: null,
setImmediate: -1,
nextTick: -2,
};

class MockTimers {
Expand Down

0 comments on commit 962e14a

Please sign in to comment.