test: add test for one arg timers to increase coverage

PR-URL: https://github.com/nodejs/node/pull/54007
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Carlos Espa authored and RafaelGSS committed 2024-08-05 11:15:44 -03:00
1 parent edd80e2bdc
commit da3573409c
1 file changed
+5
+5
View File
@@ -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); }));