diff options
author | RakshithNM <rakshith_bellare@outlook.com> | 2018-05-06 19:42:50 +0530 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-05-14 18:56:28 +0200 |
commit | 745463a0b72c77cecff60cfda175f6185745799a (patch) | |
tree | 9422869acf8fddff0fc4887145b0e61781a7e005 /test | |
parent | 60ef7d1a8f7f576651f4d0817e6568cc80e64f99 (diff) | |
download | android-node-v8-745463a0b72c77cecff60cfda175f6185745799a.tar.gz android-node-v8-745463a0b72c77cecff60cfda175f6185745799a.tar.bz2 android-node-v8-745463a0b72c77cecff60cfda175f6185745799a.zip |
test: display values in AssertionErrors
In test-module-relative-lookup, change assert.strictEqual()
calls so that values are displayed when an AssertionError occurs.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-module-relative-lookup.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-module-relative-lookup.js b/test/parallel/test-module-relative-lookup.js index 6ebb8ee188..3e1904dc14 100644 --- a/test/parallel/test-module-relative-lookup.js +++ b/test/parallel/test-module-relative-lookup.js @@ -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], '.'); |