mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: add test for one arg timers to increase coverage
PR-URL: https://github.com/nodejs/node/pull/54007 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
049c894350
commit
798ca7ed10
@ -79,3 +79,8 @@ setTimeout(common.mustCall(() => {
|
|||||||
// Test 10 ms timeout separately.
|
// Test 10 ms timeout separately.
|
||||||
setTimeout(common.mustCall(), 10);
|
setTimeout(common.mustCall(), 10);
|
||||||
setInterval(common.mustCall(function() { clearInterval(this); }), 10);
|
setInterval(common.mustCall(function() { clearInterval(this); }), 10);
|
||||||
|
|
||||||
|
// Test no timeout separately
|
||||||
|
setTimeout(common.mustCall());
|
||||||
|
// eslint-disable-next-line no-restricted-syntax
|
||||||
|
setInterval(common.mustCall(function() { clearInterval(this); }));
|
||||||
|
Loading…
Reference in New Issue
Block a user