Removes node 16.x support #92
Annotations
6 errors
test/lib/parseJson.test.mjs > parseJson with invalid code throws error:
test/lib/parseJson.test.mjs#L87
AssertionError: expected [Function parse] to throw error including 'Unexpected end of JSON input' but got 'Expected property name or \'}\' in JS…'
- Expected
+ Received
- Unexpected end of JSON input
+ Expected property name or '}' in JSON at position 1
❯ test/lib/parseJson.test.mjs:87:19
|
test/rules/plugin/use-valid-json.test.mjs > lint incorrect JSON:
test/rules/plugin/use-valid-json.test.mjs#L30
AssertionError: expected { …(6) } to match object { severity: 2, …(3) }
(2 matching properties omitted from actual)
- Expected
+ Received
Object {
- "column": 17,
- "line": 3,
+ "column": 1,
+ "line": 0,
"ruleId": "json-es/use-valid-json",
"severity": 2,
}
❯ test/rules/plugin/use-valid-json.test.mjs:30:25
|
test/rules/plugin/use-valid-json.test.mjs > lint incorrect JSON shall return JSON.parse() error message:
test/rules/plugin/use-valid-json.test.mjs#L51
AssertionError: expected { ruleId: null, fatal: true, …(4) } to match object { severity: 2, ruleId: null, …(3) }
(1 matching property omitted from actual)
- Expected
+ Received
Object {
"column": 3,
"line": 1,
- "message": "Parsing error: Unexpected end of JSON input",
+ "message": "Parsing error: Expected property name or '}' in JSON at position 1",
"ruleId": null,
"severity": 2,
}
❯ test/rules/plugin/use-valid-json.test.mjs:51:25
|
test/rules/plugin/use-valid-json.test.mjs > lint incorrect JSON shall return JSON.parse() error message:
test/rules/plugin/use-valid-json.test.mjs#L71
AssertionError: expected { …(6) } to match object { severity: 2, …(4) }
(1 matching property omitted from actual)
- Expected
+ Received
Object {
"column": 8,
"line": 1,
- "message": "Unexpected token ) in JSON at position 7",
+ "message": "Unexpected non-whitespace character after JSON at position 7",
"ruleId": "json-es/use-valid-json",
"severity": 2,
}
❯ test/rules/plugin/use-valid-json.test.mjs:71:25
|
test/rules/plugin/use-valid-json.test.mjs > lint incorrect JSON shall return JSON.parse() error message for line 2:
test/rules/plugin/use-valid-json.test.mjs#L91
AssertionError: expected { …(6) } to match object { severity: 2, …(4) }
(1 matching property omitted from actual)
- Expected
+ Received
Object {
"column": 14,
"line": 2,
- "message": "Unexpected token in JSON at position 25",
+ "message": "Unterminated fractional number in JSON at position 25",
"ruleId": "json-es/use-valid-json",
"severity": 2,
}
❯ test/rules/plugin/use-valid-json.test.mjs:91:25
|
build (20.x)
Process completed with exit code 1.
|