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 Trott committed Nov 6, 2017
1 parent cab34ba commit 820bb00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-require-json.js
Original file line number Diff line number Diff line change
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 820bb00

Please sign in to comment.