Skip to content

Commit

Permalink
Fixes unit test for nodejs 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuller committed Apr 25, 2024
1 parent e5586cd commit 26cc6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/parseJson.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test('parseJson with invalid code throws error', () => {
const parse = () => parseJson(code, parserOptions);

// Then
expect(parse).toThrow('Unexpected end of JSON input');
expect(parse).toThrow();
});

/**
Expand Down

0 comments on commit 26cc6b1

Please sign in to comment.