Skip to content

Commit db26aaf

Browse files
committed
test: update replay JSON error expectation to cover ladibyrd
1 parent b8c9608 commit db26aaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/replay/fetch.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jest.exodus.mock.fetchReplay()
44
// Gecko: "JSON.parse: unexpected character at line {} column {} of the JSON data"
55
// Safari: "The string did not match the expected pattern."
66
const JSON_ERROR_REGEX =
7-
/(not valid JSON|^JSON Parse error|^Failed to parse JSON|^Unexpected (token|character) .* in JSON|^JSON\.parse: unexpected character|^The string did not match the expected pattern\.$|invalid character \(in JSON\.parse\))|^unexpected token: '.'$|^expected value at line |^Invalid value\.$/
7+
/(not valid JSON|^JSON Parse error|^Failed to parse JSON|^Unexpected (token|character) .* in JSON|^JSON\.parse: unexpected character|^The string did not match the expected pattern\.$|invalid character \(in JSON\.parse\))|^unexpected token: '.'$|^expected value at line |^Invalid value\.$|^Malformed JSON string$/
88

99
describe('fetch replay', () => {
1010
test('https://example.com', async () => {

0 commit comments

Comments
 (0)