aboutsummaryrefslogtreecommitdiff
path: root/test/pummel/test-regress-GH-814_2.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/pummel/test-regress-GH-814_2.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/pummel/test-regress-GH-814_2.js')
-rw-r--r--test/pummel/test-regress-GH-814_2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pummel/test-regress-GH-814_2.js b/test/pummel/test-regress-GH-814_2.js
index 5161fdb270..516a8727c6 100644
--- a/test/pummel/test-regress-GH-814_2.js
+++ b/test/pummel/test-regress-GH-814_2.js
@@ -35,7 +35,7 @@ const tailProc = require('child_process').spawn('tail', ['-f', testFileName]);
tailProc.stdout.on('data', tailCB);
function tailCB(data) {
- PASS = data.toString().indexOf('.') < 0;
+ PASS = !data.toString().includes('.');
if (PASS) {
//console.error('i');