diff options
author | Adam Wegrzynek <adam.wegrzynek@cern.ch> | 2017-11-06 16:11:12 +0100 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-11-08 14:20:06 +0000 |
commit | d520059460fa4d610eff3a99e2527dab3033d2dd (patch) | |
tree | fea6460b405fbc26cbbfc0b5c575ca6f6db8c0f1 /test/parallel/test-require-dot.js | |
parent | c3d26e801a40e1595b859df1d7730cfe526edc45 (diff) | |
download | android-node-v8-d520059460fa4d610eff3a99e2527dab3033d2dd.tar.gz android-node-v8-d520059460fa4d610eff3a99e2527dab3033d2dd.tar.bz2 android-node-v8-d520059460fa4d610eff3a99e2527dab3033d2dd.zip |
test: improve assertion in test-require-dot
Include the value that differed from the expected value in an assertion
message in test-require-dot.
PR-URL: https://github.com/nodejs/node/pull/16805
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-require-dot.js')
-rw-r--r-- | test/parallel/test-require-dot.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/parallel/test-require-dot.js b/test/parallel/test-require-dot.js index e2202efec1..002a7ac988 100644 --- a/test/parallel/test-require-dot.js +++ b/test/parallel/test-require-dot.js @@ -14,5 +14,8 @@ process.env.NODE_PATH = fixtures.path('module-require', 'relative'); m._initPaths(); const c = require('.'); - -assert.strictEqual(c.value, 42, 'require(".") should honor NODE_PATH'); +assert.strictEqual( + c.value, + 42, + `require(".") should honor NODE_PATH; expected 42, found ${c.value}` +); |