◐ Shell
clean mode source ↗

test: add test for one arg timers to increase coverage · nodejs/node@5c5093d

Original file line numberDiff line numberDiff line change

@@ -79,3 +79,8 @@ setTimeout(common.mustCall(() => {

7979

// Test 10 ms timeout separately.

8080

setTimeout(common.mustCall(), 10);

8181

setInterval(common.mustCall(function() { clearInterval(this); }), 10);

82+
83+

// Test no timeout separately

84+

setTimeout(common.mustCall());

85+

// eslint-disable-next-line no-restricted-syntax

86+

setInterval(common.mustCall(function() { clearInterval(this); }));