From 59e3bbb9d7719c76d7f154ffad2e6f07ac2f56c9 Mon Sep 17 00:00:00 2001 From: Ethan Weber Date: Fri, 12 Oct 2018 10:52:38 -0700 Subject: [PATCH] test: fix assert value order Switched assertion values to match assert.strictEqual() documentation --- test/parallel/test-repl-require.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); });