@@ -87,7 +87,7 @@ describe('app.respond', () => {
87
87
} ) ;
88
88
89
89
describe ( 'when this.type === null' , ( ) => {
90
- it ( 'should not send Content-Type header' , async ( ) => {
90
+ it ( 'should not send Content-Type header' , async ( ) => {
91
91
const app = new Koa ( ) ;
92
92
93
93
app . use ( ctx => {
@@ -106,7 +106,7 @@ describe('app.respond', () => {
106
106
} ) ;
107
107
108
108
describe ( 'when HEAD is used' , ( ) => {
109
- it ( 'should not respond with the body' , async ( ) => {
109
+ it ( 'should not respond with the body' , async ( ) => {
110
110
const app = new Koa ( ) ;
111
111
112
112
app . use ( ctx => {
@@ -124,7 +124,7 @@ describe('app.respond', () => {
124
124
assert ( ! res . text ) ;
125
125
} ) ;
126
126
127
- it ( 'should keep json headers' , async ( ) => {
127
+ it ( 'should keep json headers' , async ( ) => {
128
128
const app = new Koa ( ) ;
129
129
130
130
app . use ( ctx => {
@@ -142,7 +142,7 @@ describe('app.respond', () => {
142
142
assert ( ! res . text ) ;
143
143
} ) ;
144
144
145
- it ( 'should keep string headers' , async ( ) => {
145
+ it ( 'should keep string headers' , async ( ) => {
146
146
const app = new Koa ( ) ;
147
147
148
148
app . use ( ctx => {
@@ -160,7 +160,7 @@ describe('app.respond', () => {
160
160
assert ( ! res . text ) ;
161
161
} ) ;
162
162
163
- it ( 'should keep buffer headers' , async ( ) => {
163
+ it ( 'should keep buffer headers' , async ( ) => {
164
164
const app = new Koa ( ) ;
165
165
166
166
app . use ( ctx => {
@@ -301,7 +301,7 @@ describe('app.respond', () => {
301
301
} ) ;
302
302
303
303
describe ( 'with status=204' , ( ) => {
304
- it ( 'should respond without a body' , async ( ) => {
304
+ it ( 'should respond without a body' , async ( ) => {
305
305
const app = new Koa ( ) ;
306
306
307
307
app . use ( ctx => {
@@ -320,7 +320,7 @@ describe('app.respond', () => {
320
320
} ) ;
321
321
322
322
describe ( 'with status=205' , ( ) => {
323
- it ( 'should respond without a body' , async ( ) => {
323
+ it ( 'should respond without a body' , async ( ) => {
324
324
const app = new Koa ( ) ;
325
325
326
326
app . use ( ctx => {
@@ -339,7 +339,7 @@ describe('app.respond', () => {
339
339
} ) ;
340
340
341
341
describe ( 'with status=304' , ( ) => {
342
- it ( 'should respond without a body' , async ( ) => {
342
+ it ( 'should respond without a body' , async ( ) => {
343
343
const app = new Koa ( ) ;
344
344
345
345
app . use ( ctx => {
@@ -358,7 +358,7 @@ describe('app.respond', () => {
358
358
} ) ;
359
359
360
360
describe ( 'with custom status=700' , ( ) => {
361
- it ( 'should respond with the associated status message' , async ( ) => {
361
+ it ( 'should respond with the associated status message' , async ( ) => {
362
362
const app = new Koa ( ) ;
363
363
statuses [ '700' ] = 'custom status' ;
364
364
@@ -378,7 +378,7 @@ describe('app.respond', () => {
378
378
} ) ;
379
379
380
380
describe ( 'with custom statusMessage=ok' , ( ) => {
381
- it ( 'should respond with the custom status message' , async ( ) => {
381
+ it ( 'should respond with the custom status message' , async ( ) => {
382
382
const app = new Koa ( ) ;
383
383
384
384
app . use ( ctx => {
@@ -416,7 +416,7 @@ describe('app.respond', () => {
416
416
} ) ;
417
417
418
418
describe ( 'when .body is a null' , ( ) => {
419
- it ( 'should respond 204 by default' , async ( ) => {
419
+ it ( 'should respond 204 by default' , async ( ) => {
420
420
const app = new Koa ( ) ;
421
421
422
422
app . use ( ctx => {
@@ -433,7 +433,7 @@ describe('app.respond', () => {
433
433
assert . equal ( res . headers . hasOwnProperty ( 'content-type' ) , false ) ;
434
434
} ) ;
435
435
436
- it ( 'should respond 204 with status=200' , async ( ) => {
436
+ it ( 'should respond 204 with status=200' , async ( ) => {
437
437
const app = new Koa ( ) ;
438
438
439
439
app . use ( ctx => {
@@ -451,7 +451,7 @@ describe('app.respond', () => {
451
451
assert . equal ( res . headers . hasOwnProperty ( 'content-type' ) , false ) ;
452
452
} ) ;
453
453
454
- it ( 'should respond 205 with status=205' , async ( ) => {
454
+ it ( 'should respond 205 with status=205' , async ( ) => {
455
455
const app = new Koa ( ) ;
456
456
457
457
app . use ( ctx => {
@@ -469,7 +469,7 @@ describe('app.respond', () => {
469
469
assert . equal ( res . headers . hasOwnProperty ( 'content-type' ) , false ) ;
470
470
} ) ;
471
471
472
- it ( 'should respond 304 with status=304' , async ( ) => {
472
+ it ( 'should respond 304 with status=304' , async ( ) => {
473
473
const app = new Koa ( ) ;
474
474
475
475
app . use ( ctx => {
@@ -522,7 +522,7 @@ describe('app.respond', () => {
522
522
} ) ;
523
523
524
524
describe ( 'when .body is a Stream' , ( ) => {
525
- it ( 'should respond' , async ( ) => {
525
+ it ( 'should respond' , async ( ) => {
526
526
const app = new Koa ( ) ;
527
527
528
528
app . use ( ctx => {
@@ -541,7 +541,7 @@ describe('app.respond', () => {
541
541
assert . deepEqual ( res . body , pkg ) ;
542
542
} ) ;
543
543
544
- it ( 'should strip content-length when overwriting' , async ( ) => {
544
+ it ( 'should strip content-length when overwriting' , async ( ) => {
545
545
const app = new Koa ( ) ;
546
546
547
547
app . use ( ctx => {
@@ -561,7 +561,7 @@ describe('app.respond', () => {
561
561
assert . deepEqual ( res . body , pkg ) ;
562
562
} ) ;
563
563
564
- it ( 'should keep content-length if not overwritten' , async ( ) => {
564
+ it ( 'should keep content-length if not overwritten' , async ( ) => {
565
565
const app = new Koa ( ) ;
566
566
567
567
app . use ( ctx => {
@@ -582,7 +582,7 @@ describe('app.respond', () => {
582
582
} ) ;
583
583
584
584
it ( 'should keep content-length if overwritten with the same stream' ,
585
- async ( ) => {
585
+ async ( ) => {
586
586
const app = new Koa ( ) ;
587
587
588
588
app . use ( ctx => {
@@ -777,7 +777,7 @@ describe('app.respond', () => {
777
777
. expect ( 'hello' ) ;
778
778
} ) ;
779
779
780
- it ( 'should 204' , async ( ) => {
780
+ it ( 'should 204' , async ( ) => {
781
781
const app = new Koa ( ) ;
782
782
783
783
app . use ( ctx => {
0 commit comments