From a5830d12ec2f6c1962541f59c1e26a66b3212f2b Mon Sep 17 00:00:00 2001 From: Romain Menke Date: Sat, 9 Dec 2023 18:02:25 +0100 Subject: [PATCH] cleanup --- test/lint.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/lint.js b/test/lint.js index e17bdf59..3082400c 100644 --- a/test/lint.js +++ b/test/lint.js @@ -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 } ) @@ -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 } ) @@ -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 } ) @@ -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))'` ) }) })