File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
78
78
data = fs . readFileSync ( routeFile ) ,
79
79
config = JSON . parse ( data ) ;
80
80
81
- this . output = 'hello dynamic.com' ;
82
81
config . router [ 'dynamic.com' ] = "127.0.0.1:8103"
83
82
fs . writeFileSync ( routeFile , JSON . stringify ( config ) ) ;
84
83
@@ -91,13 +90,13 @@ vows.describe('node-http-proxy/proxy-table').addBatch({
91
90
}
92
91
} ;
93
92
94
- runner . startTargetServer ( 8103 , that . output , function ( ) {
93
+ runner . startTargetServer ( 8103 , 'hello dynamic.com' , function ( ) {
95
94
request ( options , that . callback ) ;
96
95
} ) ;
97
96
} ) ;
98
97
} ,
99
98
"should receive 'hello dynamic.com'" : function ( err , res , body ) {
100
- assert . equal ( body , this . output ) ;
99
+ assert . equal ( body , 'hello dynamic.com' ) ;
101
100
}
102
101
}
103
102
}
You can’t perform that action at this time.
0 commit comments