Skip to content

Commit 5c5093d

Browse files
Ceres6marco-ippolito
authored andcommitted
test: add test for one arg timers to increase coverage
PR-URL: #54007 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent fb73422 commit 5c5093d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-timers.js

+5
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,8 @@ setTimeout(common.mustCall(() => {
7979
// Test 10 ms timeout separately.
8080
setTimeout(common.mustCall(), 10);
8181
setInterval(common.mustCall(function() { clearInterval(this); }), 10);
82+
83+
// Test no timeout separately
84+
setTimeout(common.mustCall());
85+
// eslint-disable-next-line no-restricted-syntax
86+
setInterval(common.mustCall(function() { clearInterval(this); }));

0 commit comments

Comments
 (0)