mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05: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:
1 parent
edd80e2bdc
commit
da3573409c
1 file changed
+5
@@ -79,3 +79,8 @@ setTimeout(common.mustCall(() => {
|
||||
// Test 10 ms timeout separately.
|
||||
setTimeout(common.mustCall(), 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); }));
|
||||
Reference in new issue
Block a user