Skip to content

Commit

Permalink
add rule to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Sep 10, 2024
1 parent 0914676 commit e37600d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/linter/rules/no-invalid-css-syntax.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('no-invalid-css-syntax', () => {
[
'##.#foo', // class selector contains hash
'##.bar:has(', // unclosed pseudo-class
'example.com#$#body { padding 2px !important; }', // missing colon
].join(NEWLINE),
),
).toMatchObject({
Expand All @@ -64,9 +65,20 @@ describe('no-invalid-css-syntax', () => {
endColumn: 11,
},
},
{
rule: 'no-invalid-css-syntax',
severity: 2,
message: 'Cannot parse CSS due to the following error: Colon is expected',
position: {
startLine: 3,
startColumn: 29,
endLine: 3,
endColumn: 44,
},
},
],
warningCount: 0,
errorCount: 2,
errorCount: 3,
fatalErrorCount: 0,
});
});
Expand Down

0 comments on commit e37600d

Please sign in to comment.