summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-server-connections.js
diff options
context:
space:
mode:
authorNataly Shrits <nataly@soluto.com>2017-06-21 21:09:37 +0300
committerTobias Nießen <tniessen@tnie.de>2017-07-02 23:36:39 +0200
commit20b00f3a366c67b3192bdc006ff82d2d2a361975 (patch)
treeaa1f266c91331bee6ad971331cc315974916f03a /test/parallel/test-net-server-connections.js
parentea927b3711dbd8032709dfec6f9736a181a522b9 (diff)
downloadandroid-node-v8-20b00f3a366c67b3192bdc006ff82d2d2a361975.tar.gz
android-node-v8-20b00f3a366c67b3192bdc006ff82d2d2a361975.tar.bz2
android-node-v8-20b00f3a366c67b3192bdc006ff82d2d2a361975.zip
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/parallel/test-net-server-connections.js')
-rw-r--r--test/parallel/test-net-server-connections.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-net-server-connections.js b/test/parallel/test-net-server-connections.js
index 39ff1e8ff6..c424d2a729 100644
--- a/test/parallel/test-net-server-connections.js
+++ b/test/parallel/test-net-server-connections.js
@@ -34,6 +34,6 @@ common.expectWarning('DeprecationWarning', expectedWarning);
// test that server.connections property is no longer enumerable now that it
// has been marked as deprecated
-assert.strictEqual(Object.keys(server).indexOf('connections'), -1);
+assert.strictEqual(Object.keys(server).includes('connections'), false);
assert.strictEqual(server.connections, 0);