diff --git a/test/context.js b/test/context.js index 36fdd60..51ec04b 100644 --- a/test/context.js +++ b/test/context.js @@ -28,7 +28,7 @@ describe('ctx.body=', function(){ ctx.body = 'hey'; assert('text/html; charset=utf-8' == ctx.responseHeader['content-type']); - + ctx.body = { foo: 'bar' }; assert('application/json' == ctx.responseHeader['content-type']); }) @@ -394,7 +394,7 @@ describe('ctx.accepted', function(){ it('should return accepted types', function(){ var ctx = context(); ctx.req.headers.accept = 'application/*;q=0.2, image/jpeg;q=0.8, text/html, text/plain'; - ctx.accepted.should.eql(['text/plain', 'text/html', 'image/jpeg', 'application/*']); + ctx.accepted.should.eql(['text/html', 'text/plain', 'image/jpeg', 'application/*']); }) })