Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Dec 9, 2023
1 parent 52e7e6e commit a5830d1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ test("should warn on duplicate url's", t => {
})
})

test("should warn on when support conditions precede layer clauses", t => {
test("should warn on multiple layer clauses", t => {
return processor
.process(
`
@import url('foo') supports(selector(&)) layer(bar);
@import url('foo') layer layer(bar);
`,
{ from: undefined }
)
Expand All @@ -237,16 +237,16 @@ test("should warn on when support conditions precede layer clauses", t => {
t.is(warnings.length, 1)
t.is(
warnings[0].text,
`layers must be defined before support conditions in '@import url('foo') supports(selector(&)) layer(bar)'`
`Multiple layers in '@import url('foo') layer layer(bar)'`
)
})
})

test("should warn on multiple support conditions", t => {
test("should warn on when support conditions precede layer clauses", t => {
return processor
.process(
`
@import url('foo') supports(selector(&)) supports((display: grid));
@import url('foo') supports(selector(&)) layer(bar);
`,
{ from: undefined }
)
Expand All @@ -255,16 +255,16 @@ test("should warn on multiple support conditions", t => {
t.is(warnings.length, 1)
t.is(
warnings[0].text,
`Multiple support conditions in '@import url('foo') supports(selector(&)) supports((display: grid))'`
`layers must be defined before support conditions in '@import url('foo') supports(selector(&)) layer(bar)'`
)
})
})

test("should warn on multiple layer clauses", t => {
test("should warn on multiple support conditions", t => {
return processor
.process(
`
@import url('foo') layer layer(bar);
@import url('foo') supports(selector(&)) supports((display: grid));
`,
{ from: undefined }
)
Expand All @@ -273,7 +273,7 @@ test("should warn on multiple layer clauses", t => {
t.is(warnings.length, 1)
t.is(
warnings[0].text,
`Multiple layers in '@import url('foo') layer layer(bar)'`
`Multiple support conditions in '@import url('foo') supports(selector(&)) supports((display: grid))'`
)
})
})
Expand Down

0 comments on commit a5830d1

Please sign in to comment.