Skip to content

Commit

Permalink
enable test for corrupt JSON again
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Mar 5, 2017
1 parent 7a68525 commit b47e58f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,10 @@ test('jsonToEsModule()', t => {
'should throw a type error when `filename` option is not a function.'
);

/* Re-enable this test after Qix-/node-error-ex is fixed
t.throws(
() => jsonToEsModule('{', {filename: './fixture.json'}),
/Unexpected end of input at 1:2 in \.\/fixture.json/,
'should throw an error when it takes corrupt JSON.'
);
*/
});

0 comments on commit b47e58f

Please sign in to comment.