Skip to content

Commit

Permalink
test: removed message from strictEqual
Browse files Browse the repository at this point in the history
By removing the message from strictEqual, it will now print out the
actual values of a and b, which will be more helpful in debugging. The
old message has been added as a comment above the test.

PR-URL: #20983
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
lliepert authored and MylesBorins committed Jun 6, 2018
1 parent e4224fd commit d84aa51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-require-dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const a = require(fixtures.path('module-require', 'relative', 'dot.js'));
const b = require(fixtures.path('module-require', 'relative', 'dot-slash.js'));

assert.strictEqual(a.value, 42);
assert.strictEqual(a, b, 'require(".") should resolve like require("./")');
// require(".") should resolve like require("./")
assert.strictEqual(a, b);

process.env.NODE_PATH = fixtures.path('module-require', 'relative');
m._initPaths();
Expand Down

0 comments on commit d84aa51

Please sign in to comment.