GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: favor `===` over `==` in crypto tests · nodejs/node@29a7196

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • parallel
      • test-crypto-authenticated.js
      • test-crypto-hmac.js
    • pummel
      • test-crypto-dh.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-authenticated.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ var ciphers = crypto.getCiphers();
312312
for (var i in TEST_CASES) {
313313
var test = TEST_CASES[i];
314314

315-
if (ciphers.indexOf(test.algo) == -1) {
315+
if (ciphers.indexOf(test.algo) === -1) {
316316
common.skip('unsupported ' + test.algo + ' test');
317317
continue;
318318
}
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-hmac.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var wikipedia = [
6262
for (let i = 0, l = wikipedia.length; i < l; i++) {
6363
for (const hash in wikipedia[i]['hmac']) {
6464
// FIPS does not support MD5.
65-
if (common.hasFipsCrypto && hash == 'md5')
65+
if (common.hasFipsCrypto && hash === 'md5')
6666
continue;
6767
const result = crypto.createHmac(hash, wikipedia[i]['key'])
6868
.update(wikipedia[i]['data'])
Collapse file

‎test/pummel/test-crypto-dh.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-crypto-dh.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ for (const name in hashes) {
4141

4242
for (const name in hashes) {
4343
// modp1 is 768 bits, FIPS requires >= 1024
44-
if (name == 'modp1' && common.hasFipsCrypto)
44+
if (name === 'modp1' && common.hasFipsCrypto)
4545
continue;
4646
var group1 = crypto.getDiffieHellman(name);
4747
var group2 = crypto.getDiffieHellman(name);

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.