@@ -70,14 +70,14 @@ test('Utilization Common Components', async function (t) {
7070 // Should skip missing key 'bar' and only return valid 'foo'
7171 assert . deepEqual ( common . getKeys ( { foo : 'foo' } , [ 'foo' , 'bar' ] , false ) , { foo : 'foo' } )
7272
73- // Should skip invalid 'bar' and only return valid 'foo'
74- assert . deepEqual ( common . getKeys ( { foo : 'foo' , bar : 'bar\0' } , [ 'foo' , 'bar' ] , false ) , { foo : 'foo' } )
73+ // Should skip invalid key 'bar' and only return valid 'foo'
74+ assert . deepEqual ( common . getKeys ( { foo : 'foo' , bar : BIG } , [ 'foo' , 'bar' ] , false ) , { foo : 'foo' } )
7575
76- // Should skip both keys if both are missing or invalid
76+ // Should skip both keys if both are missing
7777 assert . deepEqual ( common . getKeys ( { baz : 'baz' } , [ 'foo' , 'bar' ] , false ) , { } )
7878
79- // Should skip key with value too large
80- assert . deepEqual ( common . getKeys ( { foo : BIG , bar : 'bar' } , [ 'foo' , 'bar' ] , false ) , { bar : 'bar' } )
79+ // Should skip both keys if both are invalid
80+ assert . deepEqual ( common . getKeys ( { foo : BIG , bar : BIG } , [ 'foo' , 'bar' ] , false ) , { } )
8181 } )
8282 } )
8383
0 commit comments