File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -730,16 +730,16 @@ describe('Selector Nodes', () => {
730730 it ( 'should parse trailing space in :is() pseudo-class' , ( ) => {
731731 const root = parse_selector ( ':is(a )' )
732732 const selector = root . first_child
733- const pseudo = selector ?. first_child !
734- const [ list ] = pseudo . children
733+ const pseudo = selector ?. first_child
734+ const [ list ] = pseudo ! . children
735735 const [ a ] = list . children
736736 expect ( a . text ) . toBe ( 'a' )
737737 } )
738738
739739 it ( 'should parse trailing tab in :is() pseudo-class' , ( ) => {
740740 const root = parse_selector ( ':is(a )' )
741- const selector = root . first_child
742- const pseudo = selector ? .first_child !
741+ const selector = root . first_child !
742+ const pseudo = selector . first_child !
743743 const [ list ] = pseudo . children
744744 const [ a ] = list . children
745745 expect ( a . text ) . toBe ( 'a' )
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ describe('Core Nodes', () => {
382382 for ( let i = 0 ; i < children . length - 1 ; i ++ ) {
383383 const nextSibling = children [ i ] . next_sibling
384384 expect ( nextSibling ) . not . toBeNull ( )
385- expect ( nextSibling . start ) . toBe ( children [ i + 1 ] . start )
385+ expect ( nextSibling ! . start ) . toBe ( children [ i + 1 ] . start )
386386 }
387387
388388 expect ( children [ children . length - 1 ] . next_sibling ) . toBeNull ( )
@@ -516,7 +516,7 @@ describe('Core Nodes', () => {
516516 for ( let i = 0 ; i < children . length - 1 ; i ++ ) {
517517 const nextSibling = children [ i ] . next_sibling
518518 expect ( nextSibling ) . not . toBeNull ( )
519- expect ( nextSibling . start ) . toBe ( children [ i + 1 ] . start )
519+ expect ( nextSibling ! . start ) . toBe ( children [ i + 1 ] . start )
520520 }
521521
522522 expect ( children [ children . length - 1 ] . next_sibling ) . toBeNull ( )
You can’t perform that action at this time.
0 commit comments