From 09785da3a7e4cd9464ba6acffb5b5e68164ec36f Mon Sep 17 00:00:00 2001 From: loicsaintroch Date: Mon, 9 Nov 2015 15:27:39 +0100 Subject: [PATCH] Fix tests --- test/application/toJSON.js | 1 + test/response/type.js | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/test/application/toJSON.js b/test/application/toJSON.js index a9e7511d72..9103b2b227 100755 --- a/test/application/toJSON.js +++ b/test/application/toJSON.js @@ -9,6 +9,7 @@ describe('app.toJSON()', function () { obj.should.eql({ subdomainOffset: 2, + proxy: false, env: 'test' }); }); diff --git a/test/response/type.js b/test/response/type.js index ff7aa89ade..7d4147a7b0 100755 --- a/test/response/type.js +++ b/test/response/type.js @@ -40,15 +40,6 @@ describe('ctx.type=', function () { ctx.response.header['content-type'].should.equal('text/html; charset=foo'); }); }); - - describe('with an unknown extension', function () { - it('should default to application/octet-stream', function () { - const ctx = context(); - ctx.type = 'asdf'; - ctx.type.should.equal('application/octet-stream'); - ctx.response.header['content-type'].should.equal('application/octet-stream'); - }); - }); }); describe('ctx.type', function () {