From b7619e3b16bbd17d4622e14577ac7b610ef88fea Mon Sep 17 00:00:00 2001 From: Peter Diaz Date: Thu, 1 Dec 2016 11:41:53 -0600 Subject: [PATCH] test: update assert.equal() to assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/10024 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-crypto-sign-verify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-sign-verify.js b/test/parallel/test-crypto-sign-verify.js index 77ecda30534a76..6df41409f0e6c1 100644 --- a/test/parallel/test-crypto-sign-verify.js +++ b/test/parallel/test-crypto-sign-verify.js @@ -21,7 +21,7 @@ var keyPem = fs.readFileSync(common.fixturesDir + '/test_key.pem', 'ascii'); let s1stream = crypto.createSign('RSA-SHA1'); s1stream.end('Test123'); s1stream = s1stream.sign(keyPem, 'base64'); - assert.equal(s1, s1stream, 'Stream produces same output'); + assert.strictEqual(s1, s1stream, 'Stream produces same output'); const verified = crypto.createVerify('RSA-SHA1') .update('Test') @@ -37,7 +37,7 @@ var keyPem = fs.readFileSync(common.fixturesDir + '/test_key.pem', 'ascii'); let s2stream = crypto.createSign('RSA-SHA256'); s2stream.end('Test123'); s2stream = s2stream.sign(keyPem, 'latin1'); - assert.equal(s2, s2stream, 'Stream produces same output'); + assert.strictEqual(s2, s2stream, 'Stream produces same output'); let verified = crypto.createVerify('RSA-SHA256') .update('Test')