Fix tests

This commit is contained in:
loicsaintroch 2015-11-09 15:27:39 +01:00
parent 710321e76c
commit 09785da3a7
2 changed files with 1 additions and 9 deletions

View File

@ -9,6 +9,7 @@ describe('app.toJSON()', function () {
obj.should.eql({
subdomainOffset: 2,
proxy: false,
env: 'test'
});
});

View File

@ -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 () {