summaryrefslogtreecommitdiff
path: root/test/disabled
diff options
context:
space:
mode:
authorNataly Shrits <nataly@soluto.com>2017-06-21 21:09:37 +0300
committerMyles Borins <mylesborins@google.com>2017-08-15 20:57:33 -0700
commit49e786628f4429e737eefc5da39683b0ed698fc8 (patch)
treeb57d98817bd6ebacd90ed80c6c5553c49cfe3cb8 /test/disabled
parent2eb926b48735433628765bf48633c537ceeadd52 (diff)
downloadnode-new-49e786628f4429e737eefc5da39683b0ed698fc8.tar.gz
test: replace indexOf with includes and startsWith
PR-URL: https://github.com/nodejs/node/pull/13852 Refs: https://github.com/nodejs/node/issues/12586 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'test/disabled')
-rw-r--r--test/disabled/test-sendfd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/disabled/test-sendfd.js b/test/disabled/test-sendfd.js
index 8de6045cb2..68d4099371 100644
--- a/test/disabled/test-sendfd.js
+++ b/test/disabled/test-sendfd.js
@@ -74,7 +74,7 @@ pipeReadStream.on('data', function(data) {
var rd = JSON.parse(d);
assert.strictEqual(rd.pid, cpp);
- assert.strictEqual(seenOrdinals.indexOf(rd.ord), -1);
+ assert.strictEqual(seenOrdinals.includes(rd.ord), false)
seenOrdinals.unshift(rd.ord);
});