From e91095040d15156e612175ea961943a44abba18e Mon Sep 17 00:00:00 2001 From: Carlos Espa <43477095+Ceres6@users.noreply.github.com> Date: Thu, 25 Jul 2024 19:12:51 +0200 Subject: [PATCH] test: add test for one arg timers to increase coverage PR-URL: https://github.com/nodejs/node/pull/54007 Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- test/parallel/test-timers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/parallel/test-timers.js b/test/parallel/test-timers.js index e04c1f3f184946..11c6e106e85760 100644 --- a/test/parallel/test-timers.js +++ b/test/parallel/test-timers.js @@ -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); }));