@@ -21,7 +21,7 @@ t.test('basic operations', t => {
21
21
i . get ( 'y' ) ,
22
22
] , 'filter returns an iterable of all matching nodes' )
23
23
24
- t . same ( [ ...i . query ( 'license' ) ] . sort ( ( a , b ) => String ( a ) . localeCompare ( String ( b , 'en' ) ) ) ,
24
+ t . same ( [ ...i . query ( 'license' ) ] . sort ( ( a , b ) => String ( a ) . localeCompare ( String ( b ) , 'en' ) ) ,
25
25
[ 'ISC' , 'MIT' , undefined ] )
26
26
t . same ( [ ...i . query ( 'license' , 'MIT' ) ] , [
27
27
{ location : 'x' , name : 'x' , package : { licence : 'MIT' , funding : 'foo' } } ,
@@ -33,7 +33,7 @@ t.test('basic operations', t => {
33
33
{ location : 'x' , name : 'x' , package : { licence : 'MIT' , funding : 'foo' } } ,
34
34
{ location : 'y' , name : 'x' , package : { licenses : [ { type : 'ISC' } ] , funding : { url : 'foo' } } } ,
35
35
] , 'can query by name' )
36
- t . same ( [ ...i . query ( 'funding' ) ] . sort ( ( a , b ) => String ( a ) . localeCompare ( String ( b , 'en' ) ) ) ,
36
+ t . same ( [ ...i . query ( 'funding' ) ] . sort ( ( a , b ) => String ( a ) . localeCompare ( String ( b ) , 'en' ) ) ,
37
37
[ 'bar' , 'foo' , undefined ] )
38
38
t . same ( [ ...i . query ( 'funding' , 'foo' ) ] , [
39
39
{ location : 'x' , name : 'x' , package : { licence : 'MIT' , funding : 'foo' } } ,
0 commit comments