Skip to content

Commit 7044065

Browse files
fcampinhoTrott
authored andcommitted
test: change == to === in crypto test
Changed the equality comparison from == to identity operator === PR-URL: #12405 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]>
1 parent ea01cd7 commit 7044065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-crypto-sign-verify.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const modSize = 1024;
139139
padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
140140
saltLength: verifySaltLength
141141
}, s4);
142-
const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) ==
142+
const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) ===
143143
getEffectiveSaltLength(verifySaltLength);
144144
assert.strictEqual(verified, saltLengthCorrect, 'verify (PSS)');
145145
});

0 commit comments

Comments
 (0)