Skip to content

Commit d52ceb4

Browse files
committed
test: favor === over == in test-timers.js
Use `===` instead of `==` in pummel/test-timers.js PR-URL: nodejs#8131 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7652ae9 commit d52ceb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/pummel/test-timers.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ setInterval(function() {
3939
assert.equal(true, t - WINDOW < diff && diff < t + WINDOW);
4040

4141
assert.equal(true, interval_count <= 3);
42-
if (interval_count == 3)
42+
if (interval_count === 3)
4343
clearInterval(this);
4444
}, 1000);
4545

@@ -54,7 +54,7 @@ setInterval(function(param) {
5454
++interval_count2;
5555
assert.equal('test param', param);
5656

57-
if (interval_count2 == 3)
57+
if (interval_count2 === 3)
5858
clearInterval(this);
5959
}, 1000, 'test param');
6060

@@ -71,7 +71,7 @@ setInterval(function(param1, param2) {
7171
assert.equal('param1', param1);
7272
assert.equal('param2', param2);
7373

74-
if (interval_count3 == 3)
74+
if (interval_count3 === 3)
7575
clearInterval(this);
7676
}, 1000, 'param1', 'param2');
7777

0 commit comments

Comments
 (0)