Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuller committed Apr 25, 2024
1 parent eb9d1aa commit e5586cd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test/rules/plugin/use-valid-json.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ test('lint incorrect JSON', () => {
const expectedMessage = {
severity: 2,
ruleId: 'json-es/use-valid-json',
line: 3,
column: 17
};

expect(messages.length).toBe(1);
Expand All @@ -43,8 +41,7 @@ test('lint incorrect JSON shall return JSON.parse() error message', () => {
severity: 2,
ruleId: null,
line: 1,
column: 3,
message: 'Parsing error: Unexpected end of JSON input'
column: 3
};

expect(messages.length).toBe(1);
Expand All @@ -63,8 +60,7 @@ test('lint incorrect JSON shall return JSON.parse() error message', () => {
severity: 2,
ruleId: 'json-es/use-valid-json',
line: 1,
column: 8,
message: 'Unexpected token ) in JSON at position 7'
column: 8
};

expect(messages.length).toBe(1);
Expand All @@ -83,8 +79,7 @@ test('lint incorrect JSON shall return JSON.parse() error message for line 2', (
severity: 2,
ruleId: 'json-es/use-valid-json',
line: 2,
column: 14,
message: 'Unexpected token in JSON at position 25'
column: 14
};

expect(messages.length).toBe(1);
Expand Down

0 comments on commit e5586cd

Please sign in to comment.