mirror of
https://github.com/strapi/strapi.git
synced 2025-09-02 21:32:43 +00:00
Fix tests
This commit is contained in:
parent
710321e76c
commit
09785da3a7
@ -9,6 +9,7 @@ describe('app.toJSON()', function () {
|
||||
|
||||
obj.should.eql({
|
||||
subdomainOffset: 2,
|
||||
proxy: false,
|
||||
env: 'test'
|
||||
});
|
||||
});
|
||||
|
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user