Skip to content

Commit 06fe014

Browse files
Ceres6marco-ippolito
authored andcommitted
test: add test for one arg timers to increase coverage
PR-URL: #54007 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 201e306 commit 06fe014

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)