@@ -47,7 +47,7 @@ describe( 'flags warnings with invalid selectors css', () => {
4747
4848 it ( 'flags warnings' , ( ) => {
4949 return result . then ( data => (
50- expect ( data . results [ 0 ] . warnings ) . toHaveLength ( 3 )
50+ expect ( data . results [ 0 ] . warnings ) . toHaveLength ( 4 )
5151 ) ) ;
5252 } ) ;
5353
@@ -113,13 +113,13 @@ describe( 'flags warnings with invalid selectors css', () => {
113113
114114 it ( 'correct third warning text' , ( ) => {
115115 return result . then ( data => (
116- expect ( data . results [ 0 ] . warnings [ 2 ] . text ) . toBe ( 'Expected double quotes (string-quotes )' )
116+ expect ( data . results [ 0 ] . warnings [ 2 ] . text ) . toBe ( 'Expected double colon pseudo-element notation (selector-pseudo-element-colon-notation )' )
117117 ) ) ;
118118 } ) ;
119119
120120 it ( 'correct third warning rule flagged' , ( ) => {
121121 return result . then ( data => (
122- expect ( data . results [ 0 ] . warnings [ 2 ] . rule ) . toBe ( 'string-quotes ' )
122+ expect ( data . results [ 0 ] . warnings [ 2 ] . rule ) . toBe ( 'selector-pseudo-element-colon-notation ' )
123123 ) ) ;
124124 } ) ;
125125
@@ -131,13 +131,43 @@ describe( 'flags warnings with invalid selectors css', () => {
131131
132132 it ( 'correct third warning line number' , ( ) => {
133133 return result . then ( data => (
134- expect ( data . results [ 0 ] . warnings [ 2 ] . line ) . toBe ( 17 )
134+ expect ( data . results [ 0 ] . warnings [ 2 ] . line ) . toBe ( 29 )
135135 ) ) ;
136136 } ) ;
137137
138138 it ( 'correct third warning column number' , ( ) => {
139139 return result . then ( data => (
140- expect ( data . results [ 0 ] . warnings [ 2 ] . column ) . toBe ( 12 )
140+ expect ( data . results [ 0 ] . warnings [ 2 ] . column ) . toBe ( 10 )
141+ ) ) ;
142+ } ) ;
143+
144+ it ( 'correct fourth warning text' , ( ) => {
145+ return result . then ( data => (
146+ expect ( data . results [ 0 ] . warnings [ 3 ] . text ) . toBe ( 'Expected double quotes (string-quotes)' )
147+ ) ) ;
148+ } ) ;
149+
150+ it ( 'correct fourth warning rule flagged' , ( ) => {
151+ return result . then ( data => (
152+ expect ( data . results [ 0 ] . warnings [ 3 ] . rule ) . toBe ( 'string-quotes' )
153+ ) ) ;
154+ } ) ;
155+
156+ it ( 'correct fourth warning severity flagged' , ( ) => {
157+ return result . then ( data => (
158+ expect ( data . results [ 0 ] . warnings [ 3 ] . severity ) . toBe ( 'error' )
159+ ) ) ;
160+ } ) ;
161+
162+ it ( 'correct fourth warning line number' , ( ) => {
163+ return result . then ( data => (
164+ expect ( data . results [ 0 ] . warnings [ 3 ] . line ) . toBe ( 17 )
165+ ) ) ;
166+ } ) ;
167+
168+ it ( 'correct fourth warning column number' , ( ) => {
169+ return result . then ( data => (
170+ expect ( data . results [ 0 ] . warnings [ 3 ] . column ) . toBe ( 12 )
141171 ) ) ;
142172 } ) ;
143173} ) ;
0 commit comments