Skip to content

Commit

Permalink
test: fix assert value order
Browse files Browse the repository at this point in the history
Switched assertion values to match assert.strictEqual() documentation

PR-URL: #23566
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
EthanWeber7 authored and jasnell committed Oct 17, 2018
1 parent e84a7f0 commit 2d5b6c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-repl-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

0 comments on commit 2d5b6c2

Please sign in to comment.