Browse Source

test: refactor test-async-wrap-check-providers

* use 'strictEqual' instead of 'equal'
* use '!==' instead of '!='

PR-URL: https://github.com/nodejs/node/pull/9297
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6
Gerges Beshay 9 years ago
committed by Rich Trott
parent
commit
758ca8d179
  1. 4
      test/parallel/test-async-wrap-check-providers.js

4
test/parallel/test-async-wrap-check-providers.js

@ -36,7 +36,7 @@ if (common.isAix) {
} }
function init(id, provider) { function init(id, provider) {
keyList = keyList.filter((e) => e != pkeys[provider]); keyList = keyList.filter((e) => e !== pkeys[provider]);
} }
function noop() { } function noop() { }
@ -119,6 +119,6 @@ process.on('exit', function() {
if (keyList.length !== 0) { if (keyList.length !== 0) {
process._rawDebug('Not all keys have been used:'); process._rawDebug('Not all keys have been used:');
process._rawDebug(keyList); process._rawDebug(keyList);
assert.equal(keyList.length, 0); assert.strictEqual(keyList.length, 0);
} }
}); });

Loading…
Cancel
Save