Skip to content

Commit

Permalink
test(readJsonFile): Changed test because of failing node v4 build on …
Browse files Browse the repository at this point in the history
…travis

Node v4 throws different json error message
  • Loading branch information
oanylund committed Apr 26, 2017
1 parent 0411dd4 commit 10b1e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('readJsonFile', () => {

utils.readJsonFile('./Na.json')
.catch( (err) => {
expect(err.message).toBe('Unexpected token t in JSON at position 2');
expect(err.message.includes('Unexpected token t')).toBe(true);
done();
});
});
Expand Down

0 comments on commit 10b1e65

Please sign in to comment.