@@ -598,7 +598,7 @@ describe('Connection', function () {
598
598
server . route ( { path : '/test/' , method : 'get' , handler : function ( ) { } } ) ;
599
599
server . route ( { path : '/test/{p}/end' , method : 'get' , handler : function ( ) { } } ) ;
600
600
601
- var routes = server . table ( ) [ server . info . uri ] ;
601
+ var routes = server . table ( ) [ 0 ] . table ;
602
602
603
603
expect ( routes . length ) . to . equal ( 2 ) ;
604
604
expect ( routes [ 0 ] . path ) . to . equal ( '/test/' ) ;
@@ -630,7 +630,7 @@ describe('Connection', function () {
630
630
server . route ( { path : '/test/' , vhost : 'two.example.com' , method : 'get' , handler : function ( ) { } } ) ;
631
631
server . route ( { path : '/test/{p}/end' , method : 'get' , handler : function ( ) { } } ) ;
632
632
633
- var routes = server . table ( ) [ server . info . uri ] ;
633
+ var routes = server . table ( ) [ 0 ] . table ;
634
634
635
635
expect ( routes . length ) . to . equal ( 4 ) ;
636
636
done ( ) ;
@@ -646,7 +646,7 @@ describe('Connection', function () {
646
646
server . route ( { path : '/test/' , vhost : 'two.example.com' , method : 'get' , handler : function ( ) { } } ) ;
647
647
server . route ( { path : '/test/{p}/end' , method : 'get' , handler : function ( ) { } } ) ;
648
648
649
- var routes = server . table ( 'one.example.com' ) [ server . info . uri ] ;
649
+ var routes = server . table ( 'one.example.com' ) [ 0 ] . table ;
650
650
651
651
expect ( routes . length ) . to . equal ( 3 ) ;
652
652
done ( ) ;
@@ -662,7 +662,7 @@ describe('Connection', function () {
662
662
server . route ( { path : '/test/' , vhost : 'two.example.com' , method : 'get' , handler : function ( ) { } } ) ;
663
663
server . route ( { path : '/test/{p}/end' , method : 'get' , handler : function ( ) { } } ) ;
664
664
665
- var routes = server . table ( [ 'one.example.com' , 'two.example.com' ] ) [ server . info . uri ] ;
665
+ var routes = server . table ( [ 'one.example.com' , 'two.example.com' ] ) [ 0 ] . table ;
666
666
667
667
expect ( routes . length ) . to . equal ( 4 ) ;
668
668
done ( ) ;
@@ -678,7 +678,7 @@ describe('Connection', function () {
678
678
server . route ( { path : '/test/' , vhost : 'two.example.com' , method : 'get' , handler : function ( ) { } } ) ;
679
679
server . route ( { path : '/test/{p}/end' , method : 'get' , handler : function ( ) { } } ) ;
680
680
681
- var routes = server . table ( 'three.example.com' ) [ server . info . uri ] ;
681
+ var routes = server . table ( 'three.example.com' ) [ 0 ] . table ;
682
682
683
683
expect ( routes . length ) . to . equal ( 2 ) ;
684
684
done ( ) ;
@@ -1083,7 +1083,7 @@ describe('Connection', function () {
1083
1083
}
1084
1084
] ) ;
1085
1085
1086
- var table = server . table ( ) [ server . info . uri ] ;
1086
+ var table = server . table ( ) [ 0 ] . table ;
1087
1087
var paths = table . map ( function ( route ) {
1088
1088
var obj = {
1089
1089
method : route . method ,
0 commit comments