Skip to content

Commit

Permalink
Update code point
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 22, 2023
1 parent 39b4a2b commit e984645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ test('Unexpected tokens', t => {
t.true(error instanceof JSONError);
const firstLine = error.message.split('\n')[0];
if (NODE_JS_VERSION === 18) {
t.is(firstLine, 'Unexpected token "a"(0x61) in JSON at position 0');
t.is(firstLine, 'Unexpected token "a"(\\u{61}) in JSON at position 0');
} else {
t.is(firstLine, 'Unexpected token "a"(\\u{61}), "a" is not valid JSON');
}
Expand Down

0 comments on commit e984645

Please sign in to comment.