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 test-timers.js · nodejs/node@e5a8790

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/pummel
    • test-timers.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/pummel/test-timers.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-timers.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ setInterval(function() {
3939
assert.equal(true, t - WINDOW < diff && diff < t + WINDOW);
4040

4141
assert.equal(true, interval_count <= 3);
42-
if (interval_count == 3)
42+
if (interval_count === 3)
4343
clearInterval(this);
4444
}, 1000);
4545

@@ -54,7 +54,7 @@ setInterval(function(param) {
5454
++interval_count2;
5555
assert.equal('test param', param);
5656

57-
if (interval_count2 == 3)
57+
if (interval_count2 === 3)
5858
clearInterval(this);
5959
}, 1000, 'test param');
6060

@@ -71,7 +71,7 @@ setInterval(function(param1, param2) {
7171
assert.equal('param1', param1);
7272
assert.equal('param2', param2);
7373

74-
if (interval_count3 == 3)
74+
if (interval_count3 === 3)
7575
clearInterval(this);
7676
}, 1000, 'param1', 'param2');
7777

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.