Skip to content

Commit

Permalink
test: clarified assert message for test-require-json.js
Browse files Browse the repository at this point in the history
PR-URL: #16807
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
matthias-reis authored and MylesBorins committed Nov 16, 2017
1 parent aaf7e83 commit af13678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-require-json.js
Expand Up @@ -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}`
);
}

0 comments on commit af13678

Please sign in to comment.