From a129d41cc1258fa31032ce5ac0d15a1f2df3a765 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Fri, 8 Nov 2013 14:09:52 -0800 Subject: [PATCH] fix negotiator 3.0 change i'm not sure if this is incorrect. people should use `accepts()` anyways. --- test/context.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/*']); }) })