Skip to content

Commit

Permalink
test: add test for one arg timers to increase coverage
Browse files Browse the repository at this point in the history
PR-URL: #54007
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Ceres6 authored and marco-ippolito committed Aug 19, 2024
1 parent 201e306 commit 06fe014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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); }));

0 comments on commit 06fe014

Please sign in to comment.