Skip to content

Commit

Permalink
test: update assert.equal() to assert.strictEqual()
Browse files Browse the repository at this point in the history
PR-URL: #10024
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Peter Diaz authored and MylesBorins committed Dec 21, 2016
1 parent cd55d43 commit 64fab33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-sign-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit 64fab33

Please sign in to comment.