@@ -1646,21 +1646,21 @@ test('select.matches()', async function (t) {
16461646 } )
16471647
16481648 await t . test ( 'should match if w/o elements or texts' , async function ( ) {
1649- assert . ok ( matches ( ':empty' , h ( '' , u ( 'comment' , '?' ) ) ) )
1649+ assert . ok ( matches ( ':empty' , h ( '' , [ u ( 'comment' , '?' ) ] ) ) )
16501650 } )
16511651
16521652 await t . test ( 'should not match if w/ elements' , async function ( ) {
16531653 assert . ok ( ! matches ( ':empty' , h ( '' , h ( '' ) ) ) )
16541654 } )
16551655
16561656 await t . test ( 'should not match if w/ text' , async function ( ) {
1657- assert . ok ( ! matches ( ':empty' , h ( '' , u ( 'text' , '.' ) ) ) )
1657+ assert . ok ( ! matches ( ':empty' , h ( '' , [ u ( 'text' , '.' ) ] ) ) )
16581658 } )
16591659
16601660 await t . test (
16611661 'should not match if w/ white-space text' ,
16621662 async function ( ) {
1663- assert . ok ( ! matches ( ':empty' , h ( '' , u ( 'text' , ' ' ) ) ) )
1663+ assert . ok ( ! matches ( ':empty' , h ( '' , [ u ( 'text' , ' ' ) ] ) ) )
16641664 }
16651665 )
16661666 } )
@@ -1675,15 +1675,15 @@ test('select.matches()', async function (t) {
16751675 } )
16761676
16771677 await t . test ( 'should match if w/ white-space text' , async function ( ) {
1678- assert . ok ( matches ( ':blank' , h ( '' , u ( 'text' , ' ' ) ) ) )
1678+ assert . ok ( matches ( ':blank' , h ( '' , [ u ( 'text' , ' ' ) ] ) ) )
16791679 } )
16801680
16811681 await t . test ( 'should not match if w/ elements' , async function ( ) {
16821682 assert . ok ( ! matches ( ':blank' , h ( '' , h ( '' ) ) ) )
16831683 } )
16841684
16851685 await t . test ( 'should not match if w/ text' , async function ( ) {
1686- assert . ok ( ! matches ( ':blank' , h ( '' , u ( 'text' , '.' ) ) ) )
1686+ assert . ok ( ! matches ( ':blank' , h ( '' , [ u ( 'text' , '.' ) ] ) ) )
16871687 } )
16881688 } )
16891689
0 commit comments