Skip to content

Commit b0619e8

Browse files
thecoolestguyevanlucas
authored andcommitted
test: comparison operator now more strict
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>
1 parent 7f34cc3 commit b0619e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-timers-zero-timeout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const assert = require('assert');
2323
assert.strictEqual(a, 'foo');
2424
assert.strictEqual(b, 'bar');
2525
assert.strictEqual(c, 'baz');
26-
if (++ncalled == 3) clearTimeout(iv);
26+
if (++ncalled === 3) clearTimeout(iv);
2727
}
2828

2929
process.on('exit', function() {

0 commit comments

Comments
 (0)