mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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: https://github.com/nodejs/node/pull/8190 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
7f34cc3e03
commit
b0619e8dff
1 file changed
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user