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 <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Ceres6 authored and marco-ippolito committed Aug 19, 2024
1 parent fb73422 commit 5c5093d
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 5c5093d

Please sign in to comment.