@@ -21,23 +21,24 @@ t.test("it works", async () => {
2121 { hostname : "google.com" , port : 80 , hits : 1 } ,
2222 ] ) ;
2323
24- hostnames . add ( "google.com" , undefined ) ;
24+ hostnames . add ( "google.com" , 0 ) ;
25+ hostnames . add ( "google.com" , - 1 ) ;
2526 t . same ( hostnames . asArray ( ) , [
27+ { hostname : "aikido.dev" , port : 443 , hits : 1 } ,
2628 { hostname : "aikido.dev" , port : 80 , hits : 1 } ,
2729 { hostname : "google.com" , port : 80 , hits : 1 } ,
28- { hostname : "google.com" , port : undefined , hits : 1 } ,
2930 ] ) ;
3031
3132 hostnames . add ( "github.com" , 80 ) ;
3233 t . same ( hostnames . asArray ( ) , [
34+ { hostname : "aikido.dev" , port : 80 , hits : 1 } ,
3335 { hostname : "google.com" , port : 80 , hits : 1 } ,
34- { hostname : "google.com" , port : undefined , hits : 1 } ,
3536 { hostname : "github.com" , port : 80 , hits : 1 } ,
3637 ] ) ;
3738
3839 hostnames . add ( "jetbrains.com" , 80 ) ;
3940 t . same ( hostnames . asArray ( ) , [
40- { hostname : "google.com" , port : undefined , hits : 1 } ,
41+ { hostname : "google.com" , port : 80 , hits : 1 } ,
4142 { hostname : "github.com" , port : 80 , hits : 1 } ,
4243 { hostname : "jetbrains.com" , port : 80 , hits : 1 } ,
4344 ] ) ;
0 commit comments