Skip to content

Commit

Permalink
test: display values in AssertionErrors
Browse files Browse the repository at this point in the history
In test-module-relative-lookup, change assert.strictEqual()
calls so that values are displayed when an AssertionError occurs.

PR-URL: #20545
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
RakshithNM authored and addaleax committed May 14, 2018
1 parent 60ef7d1 commit 745463a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-module-relative-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const _module = require('module'); // avoid collision with global.module
const lookupResults = _module._resolveLookupPaths('./lodash');
let paths = lookupResults[1];

assert.strictEqual(paths[0], '.',
'Current directory gets highest priority for local modules');
// Current directory gets highest priority for local modules
assert.strictEqual(paths[0], '.');

paths = _module._resolveLookupPaths('./lodash', null, true);

assert.strictEqual(paths && paths[0], '.',
'Current directory gets highest priority for local modules');
// Current directory gets highest priority for local modules
assert.strictEqual(paths && paths[0], '.');

0 comments on commit 745463a

Please sign in to comment.