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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
EthanWeber7 authored and MylesBorins committed Nov 29, 2018
1 parent d152d7f commit d9e58b8
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 d9e58b8

Please sign in to comment.