diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js index 331c2d20e0a441..0e1c1298bfcda2 100644 --- a/test/parallel/test-crypto-authenticated.js +++ b/test/parallel/test-crypto-authenticated.js @@ -312,7 +312,7 @@ var ciphers = crypto.getCiphers(); for (var i in TEST_CASES) { var test = TEST_CASES[i]; - if (ciphers.indexOf(test.algo) == -1) { + if (ciphers.indexOf(test.algo) === -1) { common.skip('unsupported ' + test.algo + ' test'); continue; } diff --git a/test/parallel/test-crypto-hmac.js b/test/parallel/test-crypto-hmac.js index 8c2236e6b2ae1f..7c550be4c2ebf3 100644 --- a/test/parallel/test-crypto-hmac.js +++ b/test/parallel/test-crypto-hmac.js @@ -62,7 +62,7 @@ var wikipedia = [ for (let i = 0, l = wikipedia.length; i < l; i++) { for (const hash in wikipedia[i]['hmac']) { // FIPS does not support MD5. - if (common.hasFipsCrypto && hash == 'md5') + if (common.hasFipsCrypto && hash === 'md5') continue; const result = crypto.createHmac(hash, wikipedia[i]['key']) .update(wikipedia[i]['data']) diff --git a/test/pummel/test-crypto-dh.js b/test/pummel/test-crypto-dh.js index 081f4999c3d24e..7656d0ffa92e84 100644 --- a/test/pummel/test-crypto-dh.js +++ b/test/pummel/test-crypto-dh.js @@ -41,7 +41,7 @@ for (const name in hashes) { for (const name in hashes) { // modp1 is 768 bits, FIPS requires >= 1024 - if (name == 'modp1' && common.hasFipsCrypto) + if (name === 'modp1' && common.hasFipsCrypto) continue; var group1 = crypto.getDiffieHellman(name); var group2 = crypto.getDiffieHellman(name);