Skip to content

Commit bca587b

Browse files
Josh MaysFishrock123
Josh Mays
authored andcommitted
test: refactor test-crypto-certificate
assert.equal() -> assert.strictEqual() PR-URL: #9911 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 278772a commit bca587b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel/test-crypto-certificate.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ var spkacPem = fs.readFileSync(common.fixturesDir + '/spkac.pem');
1919

2020
var certificate = new crypto.Certificate();
2121

22-
assert.equal(certificate.verifySpkac(spkacValid), true);
23-
assert.equal(certificate.verifySpkac(spkacFail), false);
22+
assert.strictEqual(certificate.verifySpkac(spkacValid), true);
23+
assert.strictEqual(certificate.verifySpkac(spkacFail), false);
2424

25-
assert.equal(
25+
assert.strictEqual(
2626
stripLineEndings(certificate.exportPublicKey(spkacValid).toString('utf8')),
2727
stripLineEndings(spkacPem.toString('utf8'))
2828
);
29-
assert.equal(certificate.exportPublicKey(spkacFail), '');
29+
assert.strictEqual(certificate.exportPublicKey(spkacFail), '');
3030

31-
assert.equal(
31+
assert.strictEqual(
3232
certificate.exportChallenge(spkacValid).toString('utf8'),
3333
'fb9ab814-6677-42a4-a60c-f905d1a6924d'
3434
);
35-
assert.equal(certificate.exportChallenge(spkacFail), '');
35+
assert.strictEqual(certificate.exportChallenge(spkacFail), '');
3636

3737
function stripLineEndings(obj) {
3838
return obj.replace(/\n/g, '');

0 commit comments

Comments
 (0)