summaryrefslogtreecommitdiff
path: root/test/pummel/test-timers.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-08-16 15:42:35 -0700
committerRich Trott <rtrott@gmail.com>2016-08-18 15:43:13 -0700
commitd52ceb49352d217a2e3bc95d2ad3ebef087fd8f4 (patch)
treef71cf92c808d3e5730278e280a4c893380389389 /test/pummel/test-timers.js
parent7652ae98296ed46220b5505f491afcb464d096bd (diff)
downloadandroid-node-v8-d52ceb49352d217a2e3bc95d2ad3ebef087fd8f4.tar.gz
android-node-v8-d52ceb49352d217a2e3bc95d2ad3ebef087fd8f4.tar.bz2
android-node-v8-d52ceb49352d217a2e3bc95d2ad3ebef087fd8f4.zip
test: favor `===` over `==` in test-timers.js
Use `===` instead of `==` in pummel/test-timers.js PR-URL: https://github.com/nodejs/node/pull/8131 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/pummel/test-timers.js')
-rw-r--r--test/pummel/test-timers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pummel/test-timers.js b/test/pummel/test-timers.js
index f7d85bf0cf..588d2327ff 100644
--- a/test/pummel/test-timers.js
+++ b/test/pummel/test-timers.js
@@ -39,7 +39,7 @@ setInterval(function() {
assert.equal(true, t - WINDOW < diff && diff < t + WINDOW);
assert.equal(true, interval_count <= 3);
- if (interval_count == 3)
+ if (interval_count === 3)
clearInterval(this);
}, 1000);
@@ -54,7 +54,7 @@ setInterval(function(param) {
++interval_count2;
assert.equal('test param', param);
- if (interval_count2 == 3)
+ if (interval_count2 === 3)
clearInterval(this);
}, 1000, 'test param');
@@ -71,7 +71,7 @@ setInterval(function(param1, param2) {
assert.equal('param1', param1);
assert.equal('param2', param2);
- if (interval_count3 == 3)
+ if (interval_count3 === 3)
clearInterval(this);
}, 1000, 'param1', 'param2');