From 7044065f1a955275335f6a9207f3321c790277c7 Mon Sep 17 00:00:00 2001 From: Fabio Campinho Date: Thu, 13 Apr 2017 17:26:00 -0300 Subject: [PATCH] test: change == to === in crypto test Changed the equality comparison from == to identity operator === PR-URL: https://github.com/nodejs/node/pull/12405 Reviewed-By: Anna Henningsen Reviewed-By: Vse Mozhet Byt Reviewed-By: Rich Trott Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Alexey Orlenko --- test/parallel/test-crypto-sign-verify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-sign-verify.js b/test/parallel/test-crypto-sign-verify.js index 241f2b6ee9..e79346a85d 100644 --- a/test/parallel/test-crypto-sign-verify.js +++ b/test/parallel/test-crypto-sign-verify.js @@ -139,7 +139,7 @@ const modSize = 1024; padding: crypto.constants.RSA_PKCS1_PSS_PADDING, saltLength: verifySaltLength }, s4); - const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) == + const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) === getEffectiveSaltLength(verifySaltLength); assert.strictEqual(verified, saltLengthCorrect, 'verify (PSS)'); });