diff --git a/test/parallel/test-repl-require.js b/test/parallel/test-repl-require.js index ecab4ba698911b..818fca7431fa94 100644 --- a/test/parallel/test-repl-require.js +++ b/test/parallel/test-repl-require.js @@ -32,7 +32,7 @@ server.listen(options, function() { }); process.on('exit', function() { - assert.strictEqual(false, /Cannot find module/.test(answer)); - assert.strictEqual(false, /Error/.test(answer)); + assert.strictEqual(/Cannot find module/.test(answer), false); + assert.strictEqual(/Error/.test(answer), false); assert.strictEqual(answer, '\'eye catcher\'\n\'perhaps I work\'\n'); });