Skip to content

Commit

Permalink
fixup! test: update test-require-json.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jul 30, 2019
1 parent 35c114f commit 0ab7845
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/parallel/test-require-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ const fixtures = require('../common/fixtures');

assert.throws(function() {
require(fixtures.path('invalid.json'));
}, SyntaxError);
}, {
name: 'SyntaxError',
message: /test[/\\]fixtures[/\\]invalid\.json: /,
});

0 comments on commit 0ab7845

Please sign in to comment.