test: clarified assert message for test-require-json.js

PR-URL: https://github.com/nodejs/node/pull/16807
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Matthias Reis 2017-11-06 16:09:54 +01:00 committed by Rich Trott
parent cab34ba75e
commit 820bb0084b

View File

@ -29,5 +29,6 @@ try {
} catch (err) {
assert.ok(
/test[/\\]fixtures[/\\]invalid\.json: Unexpected string/.test(err.message),
'require() json error should include path');
`require() json error should include path - currently: ${err.message}`
);
}