Skip to content

Commit

Permalink
test: favor === over == in test-timers.js
Browse files Browse the repository at this point in the history
Use `===` instead of `==` in pummel/test-timers.js

PR-URL: #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]>
  • Loading branch information
Trott authored and evanlucas committed Aug 24, 2016
1 parent 086e57f commit e5a8790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pummel/test-timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ setInterval(function() {
assert.equal(true, t - WINDOW < diff && diff < t + WINDOW);

assert.equal(true, interval_count <= 3);
if (interval_count == 3)
if (interval_count === 3)
clearInterval(this);
}, 1000);

Expand All @@ -54,7 +54,7 @@ setInterval(function(param) {
++interval_count2;
assert.equal('test param', param);

if (interval_count2 == 3)
if (interval_count2 === 3)
clearInterval(this);
}, 1000, 'test param');

Expand All @@ -71,7 +71,7 @@ setInterval(function(param1, param2) {
assert.equal('param1', param1);
assert.equal('param2', param2);

if (interval_count3 == 3)
if (interval_count3 === 3)
clearInterval(this);
}, 1000, 'param1', 'param2');

Expand Down

0 comments on commit e5a8790

Please sign in to comment.