@@ -74,13 +74,13 @@ test('select.select()', async function (t) {
74
74
)
75
75
76
76
await t . test ( 'should not select if not given a node' , async function ( ) {
77
- assert . equal ( select ( '*' ) , null )
77
+ assert . equal ( select ( '*' ) , undefined )
78
78
} )
79
79
80
80
await t . test (
81
81
'should not select if not given an element' ,
82
82
async function ( ) {
83
- assert . equal ( select ( '*' , { type : 'text' , value : 'a' } ) , null )
83
+ assert . equal ( select ( '*' , { type : 'text' , value : 'a' } ) , undefined )
84
84
}
85
85
)
86
86
@@ -219,7 +219,7 @@ test('select.select()', async function (t) {
219
219
h ( 'p' , 'Delta' )
220
220
] )
221
221
) ,
222
- null
222
+ undefined
223
223
)
224
224
} )
225
225
} )
@@ -290,7 +290,7 @@ test('select.select()', async function (t) {
290
290
'h1 ~ p' ,
291
291
u ( 'root' , [ h ( 'p' , 'Alpha' ) , h ( 'h1' , 'Bravo' ) , h ( 'h2' , 'Charlie' ) ] )
292
292
) ,
293
- null
293
+ undefined
294
294
)
295
295
} )
296
296
} )
@@ -321,7 +321,7 @@ test('select.select()', async function (t) {
321
321
'h1:first-child' ,
322
322
u ( 'root' , [ h ( 'p' , 'Alpha' ) , h ( 'h1' , 'Bravo' ) , h ( 'p' , 'Charlie' ) ] )
323
323
) ,
324
- null
324
+ undefined
325
325
)
326
326
}
327
327
)
@@ -352,7 +352,7 @@ test('select.select()', async function (t) {
352
352
'h1:last-child' ,
353
353
u ( 'root' , [ h ( 'p' , 'Alpha' ) , h ( 'h1' , 'Bravo' ) , h ( 'p' , 'Charlie' ) ] )
354
354
) ,
355
- null
355
+ undefined
356
356
)
357
357
}
358
358
)
@@ -383,7 +383,7 @@ test('select.select()', async function (t) {
383
383
'h1:only-child' ,
384
384
u ( 'root' , [ h ( 'p' , 'Alpha' ) , h ( 'h1' , 'Bravo' ) , h ( 'p' , 'Charlie' ) ] )
385
385
) ,
386
- null
386
+ undefined
387
387
)
388
388
}
389
389
)
@@ -739,7 +739,7 @@ test('select.select()', async function (t) {
739
739
)
740
740
741
741
await t . test ( 'should return nothing without matches' , async function ( ) {
742
- assert . equal ( select ( 'dt:first-of-type' , h ( 'dl' , [ ] ) ) , null )
742
+ assert . equal ( select ( 'dt:first-of-type' , h ( 'dl' , [ ] ) ) , undefined )
743
743
} )
744
744
} )
745
745
@@ -765,7 +765,7 @@ test('select.select()', async function (t) {
765
765
)
766
766
767
767
await t . test ( 'should return nothing without matches' , async function ( ) {
768
- assert . equal ( select ( 'dt:last-of-type' , h ( 'dl' , [ ] ) ) , null )
768
+ assert . equal ( select ( 'dt:last-of-type' , h ( 'dl' , [ ] ) ) , undefined )
769
769
} )
770
770
} )
771
771
@@ -800,13 +800,13 @@ test('select.select()', async function (t) {
800
800
h ( 'dd' , 'Foxtrot' )
801
801
] )
802
802
) ,
803
- null
803
+ undefined
804
804
)
805
805
}
806
806
)
807
807
808
808
await t . test ( 'should return nothing without matches' , async function ( ) {
809
- assert . equal ( select ( 'dt:only-of-type' , h ( 'dl' , [ ] ) ) , null )
809
+ assert . equal ( select ( 'dt:only-of-type' , h ( 'dl' , [ ] ) ) , undefined )
810
810
} )
811
811
} )
812
812
} )
@@ -885,7 +885,7 @@ test('select.select()', async function (t) {
885
885
] )
886
886
] )
887
887
) ,
888
- null
888
+ undefined
889
889
)
890
890
}
891
891
)
@@ -900,7 +900,7 @@ test('select.select()', async function (t) {
900
900
'p:read-only' ,
901
901
u ( 'root' , [ h ( 'div' , { contentEditable : 'true' } , [ h ( 'p' , 'A' ) ] ) ] )
902
902
) ,
903
- null
903
+ undefined
904
904
)
905
905
}
906
906
)
0 commit comments