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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
matthias-reis authored and cjihrig committed Nov 6, 2017
1 parent e781d93 commit 2156828
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 2156828

Please sign in to comment.