We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c9608 commit db26aafCopy full SHA for db26aaf
1 file changed
tests/replay/fetch.test.js
@@ -4,7 +4,7 @@ jest.exodus.mock.fetchReplay()
4
// Gecko: "JSON.parse: unexpected character at line {} column {} of the JSON data"
5
// Safari: "The string did not match the expected pattern."
6
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\.$/
+ /(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$/
8
9
describe('fetch replay', () => {
10
test('https://example.com', async () => {
0 commit comments