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 Jul 25, 2024
1 parent 049c894 commit 798ca7e
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 798ca7e

Please sign in to comment.