summaryrefslogtreecommitdiff
path: root/test/parallel/test-error-reporting.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-error-reporting.js')
-rw-r--r--test/parallel/test-error-reporting.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-error-reporting.js b/test/parallel/test-error-reporting.js
index 7d1b1d8cef..e7eb5abc00 100644
--- a/test/parallel/test-error-reporting.js
+++ b/test/parallel/test-error-reporting.js
@@ -36,7 +36,7 @@ function errExec(script, callback) {
assert.ok(stderr.split('\n').length > 2);
// Assert the script is mentioned in error output.
- assert.ok(stderr.indexOf(script) >= 0);
+ assert.ok(stderr.includes(script));
// Proxy the args for more tests.
callback(err, stdout, stderr);