Refactor tests (#18743)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
fisker Cheungandautofix-ci[bot] authored and GitHub committed 2026-01-25 10:30:19 +08:00
1 parent ef46101aa6
commit ed5bb0bf62
288 files changed
+730 -753

No files matched your search

@@ -0,0 +1,41 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`inline-comment.less format 1`] = `
"CssSyntaxError: Unknown word inline (5:4)
3 | a{
4 | prop
> 5 | // inline
| ^
6 | :
7 | value;
8 | }
Cause: <css input>:5:4: Unknown word inline"
`;
exports[`open-double-quote.less format 1`] = `
"CssSyntaxError: Unclosed string (2:17)
1 | a {
> 2 | background: url("
| ^
3 | }
4 |
Cause: <css input>:2:17: Unclosed string"
`;
exports[`open-sigle-quote.less format 1`] = `
"CssSyntaxError: Unclosed string (2:17)
1 | a {
> 2 | background: url('
| ^
3 | }
4 |
Cause: <css input>:2:17: Unclosed string"
`;
exports[`scss-syntax.scss format 1`] = `
"CssSyntaxError: Unknown word $foo (1:15)
> 1 | a {content: #{$foo}}
| ^
2 |
Cause: <css input>:1:15: Unknown word $foo"
`;
@@ -0,0 +1 @@
runFormatTest(import.meta, ["less"]);
@@ -0,0 +1,8 @@
// Less parser don't support inline comment before colon
a{
prop
// inline
:
value;
}
@@ -0,0 +1,3 @@
a {
background: url("
}
@@ -0,0 +1,3 @@
a {
background: url('
}
@@ -0,0 +1 @@
a {content: #{$foo}}