From 137d10d4ec803691caf2bee08d90b062716be615 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 16 Aug 2016 15:42:35 -0700 Subject: [PATCH] test: favor `===` over `==` in test-timers.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use `===` instead of `==` in pummel/test-timers.js PR-URL: https://github.com/nodejs/node/pull/8131 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/pummel/test-timers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/pummel/test-timers.js b/test/pummel/test-timers.js index 3525c827a9e6b7..d5a7d7e367ede2 100644 --- a/test/pummel/test-timers.js +++ b/test/pummel/test-timers.js @@ -41,7 +41,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); @@ -56,7 +56,7 @@ setInterval(function(param) { ++interval_count2; assert.equal('test param', param); - if (interval_count2 == 3) + if (interval_count2 === 3) clearInterval(this); }, 1000, 'test param'); @@ -73,7 +73,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');