diff options
author | Nataly Shrits <nataly@soluto.com> | 2017-06-21 21:09:37 +0300 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-07-02 23:36:39 +0200 |
commit | 20b00f3a366c67b3192bdc006ff82d2d2a361975 (patch) | |
tree | aa1f266c91331bee6ad971331cc315974916f03a /test/pummel/test-regress-GH-814_2.js | |
parent | ea927b3711dbd8032709dfec6f9736a181a522b9 (diff) | |
download | android-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.js | 2 |
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'); |