@@ -42,7 +42,7 @@ describe('flags warnings with invalid css', () => {
4242 } ) ;
4343
4444 it ( 'flags warnings' , ( ) => {
45- assert . equal ( result . results [ 0 ] . warnings . length , 5 ) ;
45+ assert . equal ( result . results [ 0 ] . warnings . length , 7 ) ;
4646 } ) ;
4747
4848 it ( 'correct warning text' , ( ) => {
@@ -52,6 +52,8 @@ describe('flags warnings with invalid css', () => {
5252 'Expected custom media query name "--FOO" to be kebab-case (custom-media-pattern)' ,
5353 'Expected custom property name "--FOO" to be kebab-case (custom-property-pattern)' ,
5454 'Expected keyframe name "FOO" to be kebab-case (keyframes-name-pattern)' ,
55+ 'Expected layer name "layer-BAR" to be kebab-case (layer-name-pattern)' ,
56+ 'Expected layer name "layer-foo.layer-BAR" to be kebab-case (layer-name-pattern)' ,
5557 'Expected class selector ".FOO" to be kebab-case (selector-class-pattern)' ,
5658 'Expected id selector "#FOO" to be kebab-case (selector-id-pattern)' ,
5759 ] ,
@@ -65,6 +67,8 @@ describe('flags warnings with invalid css', () => {
6567 'custom-media-pattern' ,
6668 'custom-property-pattern' ,
6769 'keyframes-name-pattern' ,
70+ 'layer-name-pattern' ,
71+ 'layer-name-pattern' ,
6872 'selector-class-pattern' ,
6973 'selector-id-pattern' ,
7074 ] ,
0 commit comments