From 2d5b6c2bb394c61635a32d27fcb7a6ba9b1366ac 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 PR-URL: https://github.com/nodejs/node/pull/23566 Reviewed-By: Joyee Cheung Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- 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'); });