Browse Source

test: assert.equal -> assert.strictEqual

changes assert.equal to assert.strictEqual to ensure specificity

PR-URL: https://github.com/nodejs/node/pull/10065
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
davidmarkclements 8 years ago
committed by Anna Henningsen
parent
commit
ea79a57ca4
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 6
      test/parallel/test-crypto-stream.js

6
test/parallel/test-crypto-stream.js

@ -30,8 +30,10 @@ if (!common.hasFipsCrypto) {
// Create an md5 hash of "Hallo world"
var hasher1 = crypto.createHash('md5');
hasher1.pipe(new Stream2buffer(common.mustCall(function end(err, hash) {
assert.equal(err, null);
assert.equal(hash.toString('hex'), '06460dadb35d3d503047ce750ceb2d07');
assert.strictEqual(err, null);
assert.strictEqual(
hash.toString('hex'), '06460dadb35d3d503047ce750ceb2d07'
);
})));
hasher1.end('Hallo world');

Loading…
Cancel
Save