Skip to content

Commit c9d440e

Browse files
fcampinhoMylesBorins
authored andcommitted
test: change == to === in crypto test
Changed the equality comparison from == to identity operator === PR-URL: #12405 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
1 parent 1de0490 commit c9d440e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const modSize = 1024;
142142
padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
143143
saltLength: verifySaltLength
144144
}, s4);
145-
const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) ==
145+
const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) ===
146146
getEffectiveSaltLength(verifySaltLength);
147147
assert.strictEqual(verified, saltLengthCorrect, 'verify (PSS)');
148148
});

0 commit comments

Comments
 (0)