From 784ff3289ddfd67963e56c8ed788bcc6f90aaa3a Mon Sep 17 00:00:00 2001 From: Peter Diaz Date: Thu, 1 Dec 2016 11:41:53 -0600 Subject: [PATCH 1/2] test: Changed assert.equal() to assert.strictEqual() for Test signing and verifying assertion --- 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') From 36dcc1a751671d30d3cb4c59d7dbe70c46a0b869 Mon Sep 17 00:00:00 2001 From: Peter Diaz Date: Thu, 1 Dec 2016 11:41:53 -0600 Subject: [PATCH 2/2] test: Changed assert.equal() to assert.strictEqual() for Test signing and verifying assertion test: update test-crypto-sign-verify Changed assert.equal() to assert.strictEqual() --- 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')