Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bca587b

Browse filesBrowse files
Josh MaysFishrock123
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
Copy full SHA for bca587b

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-crypto-certificate.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-certificate.js
+6-6Lines changed: 6 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.