Skip to content

Commit

Permalink
test: comparison operator now more strict
Browse files Browse the repository at this point in the history
The 'equals' comparison operator was '==' instead of the
more strict '===', so it has been changed to be more strict

PR-URL: #8190
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
thecoolestguy authored and jasnell committed Aug 22, 2016
1 parent 1df3797 commit d904163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-timers-zero-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const assert = require('assert');
assert.strictEqual(a, 'foo');
assert.strictEqual(b, 'bar');
assert.strictEqual(c, 'baz');
if (++ncalled == 3) clearTimeout(iv);
if (++ncalled === 3) clearTimeout(iv);
}

process.on('exit', function() {
Expand Down

0 comments on commit d904163

Please sign in to comment.