@@ -87,7 +87,7 @@ describe('app.respond', () => {
8787 } ) ;
8888
8989 describe ( 'when this.type === null' , ( ) => {
90- it ( 'should not send Content-Type header' , async ( ) => {
90+ it ( 'should not send Content-Type header' , async ( ) => {
9191 const app = new Koa ( ) ;
9292
9393 app . use ( ctx => {
@@ -106,7 +106,7 @@ describe('app.respond', () => {
106106 } ) ;
107107
108108 describe ( 'when HEAD is used' , ( ) => {
109- it ( 'should not respond with the body' , async ( ) => {
109+ it ( 'should not respond with the body' , async ( ) => {
110110 const app = new Koa ( ) ;
111111
112112 app . use ( ctx => {
@@ -124,7 +124,7 @@ describe('app.respond', () => {
124124 assert ( ! res . text ) ;
125125 } ) ;
126126
127- it ( 'should keep json headers' , async ( ) => {
127+ it ( 'should keep json headers' , async ( ) => {
128128 const app = new Koa ( ) ;
129129
130130 app . use ( ctx => {
@@ -142,7 +142,7 @@ describe('app.respond', () => {
142142 assert ( ! res . text ) ;
143143 } ) ;
144144
145- it ( 'should keep string headers' , async ( ) => {
145+ it ( 'should keep string headers' , async ( ) => {
146146 const app = new Koa ( ) ;
147147
148148 app . use ( ctx => {
@@ -160,7 +160,7 @@ describe('app.respond', () => {
160160 assert ( ! res . text ) ;
161161 } ) ;
162162
163- it ( 'should keep buffer headers' , async ( ) => {
163+ it ( 'should keep buffer headers' , async ( ) => {
164164 const app = new Koa ( ) ;
165165
166166 app . use ( ctx => {
@@ -301,7 +301,7 @@ describe('app.respond', () => {
301301 } ) ;
302302
303303 describe ( 'with status=204' , ( ) => {
304- it ( 'should respond without a body' , async ( ) => {
304+ it ( 'should respond without a body' , async ( ) => {
305305 const app = new Koa ( ) ;
306306
307307 app . use ( ctx => {
@@ -320,7 +320,7 @@ describe('app.respond', () => {
320320 } ) ;
321321
322322 describe ( 'with status=205' , ( ) => {
323- it ( 'should respond without a body' , async ( ) => {
323+ it ( 'should respond without a body' , async ( ) => {
324324 const app = new Koa ( ) ;
325325
326326 app . use ( ctx => {
@@ -339,7 +339,7 @@ describe('app.respond', () => {
339339 } ) ;
340340
341341 describe ( 'with status=304' , ( ) => {
342- it ( 'should respond without a body' , async ( ) => {
342+ it ( 'should respond without a body' , async ( ) => {
343343 const app = new Koa ( ) ;
344344
345345 app . use ( ctx => {
@@ -358,7 +358,7 @@ describe('app.respond', () => {
358358 } ) ;
359359
360360 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 ( ) => {
362362 const app = new Koa ( ) ;
363363 statuses [ '700' ] = 'custom status' ;
364364
@@ -378,7 +378,7 @@ describe('app.respond', () => {
378378 } ) ;
379379
380380 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 ( ) => {
382382 const app = new Koa ( ) ;
383383
384384 app . use ( ctx => {
@@ -416,7 +416,7 @@ describe('app.respond', () => {
416416 } ) ;
417417
418418 describe ( 'when .body is a null' , ( ) => {
419- it ( 'should respond 204 by default' , async ( ) => {
419+ it ( 'should respond 204 by default' , async ( ) => {
420420 const app = new Koa ( ) ;
421421
422422 app . use ( ctx => {
@@ -433,7 +433,7 @@ describe('app.respond', () => {
433433 assert . equal ( res . headers . hasOwnProperty ( 'content-type' ) , false ) ;
434434 } ) ;
435435
436- it ( 'should respond 204 with status=200' , async ( ) => {
436+ it ( 'should respond 204 with status=200' , async ( ) => {
437437 const app = new Koa ( ) ;
438438
439439 app . use ( ctx => {
@@ -451,7 +451,7 @@ describe('app.respond', () => {
451451 assert . equal ( res . headers . hasOwnProperty ( 'content-type' ) , false ) ;
452452 } ) ;
453453
454- it ( 'should respond 205 with status=205' , async ( ) => {
454+ it ( 'should respond 205 with status=205' , async ( ) => {
455455 const app = new Koa ( ) ;
456456
457457 app . use ( ctx => {
@@ -469,7 +469,7 @@ describe('app.respond', () => {
469469 assert . equal ( res . headers . hasOwnProperty ( 'content-type' ) , false ) ;
470470 } ) ;
471471
472- it ( 'should respond 304 with status=304' , async ( ) => {
472+ it ( 'should respond 304 with status=304' , async ( ) => {
473473 const app = new Koa ( ) ;
474474
475475 app . use ( ctx => {
@@ -522,7 +522,7 @@ describe('app.respond', () => {
522522 } ) ;
523523
524524 describe ( 'when .body is a Stream' , ( ) => {
525- it ( 'should respond' , async ( ) => {
525+ it ( 'should respond' , async ( ) => {
526526 const app = new Koa ( ) ;
527527
528528 app . use ( ctx => {
@@ -541,7 +541,7 @@ describe('app.respond', () => {
541541 assert . deepEqual ( res . body , pkg ) ;
542542 } ) ;
543543
544- it ( 'should strip content-length when overwriting' , async ( ) => {
544+ it ( 'should strip content-length when overwriting' , async ( ) => {
545545 const app = new Koa ( ) ;
546546
547547 app . use ( ctx => {
@@ -561,7 +561,7 @@ describe('app.respond', () => {
561561 assert . deepEqual ( res . body , pkg ) ;
562562 } ) ;
563563
564- it ( 'should keep content-length if not overwritten' , async ( ) => {
564+ it ( 'should keep content-length if not overwritten' , async ( ) => {
565565 const app = new Koa ( ) ;
566566
567567 app . use ( ctx => {
@@ -582,7 +582,7 @@ describe('app.respond', () => {
582582 } ) ;
583583
584584 it ( 'should keep content-length if overwritten with the same stream' ,
585- async ( ) => {
585+ async ( ) => {
586586 const app = new Koa ( ) ;
587587
588588 app . use ( ctx => {
@@ -777,7 +777,7 @@ describe('app.respond', () => {
777777 . expect ( 'hello' ) ;
778778 } ) ;
779779
780- it ( 'should 204' , async ( ) => {
780+ it ( 'should 204' , async ( ) => {
781781 const app = new Koa ( ) ;
782782
783783 app . use ( ctx => {
0 commit comments