@@ -29,8 +29,8 @@ test('calls all the handlers', function(t) {
29
29
{
30
30
startHandlerTimer : function ( ) { } ,
31
31
endHandlerTimer : function ( ) { } ,
32
- closed : function ( ) {
33
- return false ;
32
+ connectionState : function ( ) {
33
+ return '' ;
34
34
}
35
35
} ,
36
36
{ } ,
@@ -58,8 +58,8 @@ test('abort with Error in next', function(t) {
58
58
{
59
59
startHandlerTimer : function ( ) { } ,
60
60
endHandlerTimer : function ( ) { } ,
61
- closed : function ( ) {
62
- return false ;
61
+ connectionState : function ( ) {
62
+ return '' ;
63
63
}
64
64
} ,
65
65
{ } ,
@@ -85,7 +85,7 @@ test('abort with false in next', function(t) {
85
85
{
86
86
startHandlerTimer : function ( ) { } ,
87
87
endHandlerTimer : function ( ) { } ,
88
- closed : function ( ) {
88
+ connectionState : function ( ) {
89
89
return false ;
90
90
}
91
91
} ,
@@ -112,8 +112,8 @@ test('abort with closed request', function(t) {
112
112
{
113
113
startHandlerTimer : function ( ) { } ,
114
114
endHandlerTimer : function ( ) { } ,
115
- closed : function ( ) {
116
- return closed ;
115
+ connectionState : function ( ) {
116
+ return closed ? 'close' : '' ;
117
117
}
118
118
} ,
119
119
{ } ,
@@ -143,8 +143,8 @@ test('cals error middleware', function(t) {
143
143
{
144
144
startHandlerTimer : function ( ) { } ,
145
145
endHandlerTimer : function ( ) { } ,
146
- closed : function ( ) {
147
- return false ;
146
+ connectionState : function ( ) {
147
+ return '' ;
148
148
}
149
149
} ,
150
150
{ } ,
@@ -170,8 +170,8 @@ test('onceNext prevents double next calls', function(t) {
170
170
{
171
171
startHandlerTimer : function ( ) { } ,
172
172
endHandlerTimer : function ( ) { } ,
173
- closed : function ( ) {
174
- return false ;
173
+ connectionState : function ( ) {
174
+ return '' ;
175
175
}
176
176
} ,
177
177
{ } ,
@@ -208,8 +208,8 @@ test('throws error for double next calls in strictNext mode', function(t) {
208
208
{
209
209
startHandlerTimer : function ( ) { } ,
210
210
endHandlerTimer : function ( ) { } ,
211
- closed : function ( ) {
212
- return false ;
211
+ connectionState : function ( ) {
212
+ return '' ;
213
213
}
214
214
} ,
215
215
{ } ,
@@ -234,8 +234,8 @@ test('calls req.startHandlerTimer', function(t) {
234
234
t . done ( ) ;
235
235
} ,
236
236
endHandlerTimer : function ( ) { } ,
237
- closed : function ( ) {
238
- return false ;
237
+ connectionState : function ( ) {
238
+ return '' ;
239
239
}
240
240
} ,
241
241
{ } ,
@@ -257,8 +257,8 @@ test('calls req.endHandlerTimer', function(t) {
257
257
t . equal ( handleName , 'foo' ) ;
258
258
t . done ( ) ;
259
259
} ,
260
- closed : function ( ) {
261
- return false ;
260
+ connectionState : function ( ) {
261
+ return '' ;
262
262
}
263
263
} ,
264
264
{ } ,
@@ -299,8 +299,8 @@ test('waits async handlers', function(t) {
299
299
{
300
300
startHandlerTimer : function ( ) { } ,
301
301
endHandlerTimer : function ( ) { } ,
302
- closed : function ( ) {
303
- return false ;
302
+ connectionState : function ( ) {
303
+ return '' ;
304
304
}
305
305
} ,
306
306
{ } ,
@@ -329,8 +329,8 @@ test('abort with rejected promise', function(t) {
329
329
{
330
330
startHandlerTimer : function ( ) { } ,
331
331
endHandlerTimer : function ( ) { } ,
332
- closed : function ( ) {
333
- return false ;
332
+ connectionState : function ( ) {
333
+ return '' ;
334
334
}
335
335
} ,
336
336
{ } ,
@@ -359,8 +359,8 @@ test('abort with rejected promise without error', function(t) {
359
359
{
360
360
startHandlerTimer : function ( ) { } ,
361
361
endHandlerTimer : function ( ) { } ,
362
- closed : function ( ) {
363
- return false ;
362
+ connectionState : function ( ) {
363
+ return '' ;
364
364
} ,
365
365
path : function ( ) {
366
366
return '/' ;
@@ -395,8 +395,8 @@ test('abort with throw inside async function', function(t) {
395
395
{
396
396
startHandlerTimer : function ( ) { } ,
397
397
endHandlerTimer : function ( ) { } ,
398
- closed : function ( ) {
399
- return false ;
398
+ connectionState : function ( ) {
399
+ return '' ;
400
400
}
401
401
} ,
402
402
{ } ,
0 commit comments