remove .request accept tests the fail
due to https://github.com/expressjs/accepts/commit/5975ce464575bd0fddfdd3d41796 958cd6bfc20b. passing nothing into accepts() is silly anyways.
This commit is contained in:
parent
29687cb253
commit
11cf47c8a6
3 changed files with 2 additions and 23 deletions
|
@ -10,13 +10,6 @@ describe('ctx.accepts(types)', function(){
|
|||
ctx.accepts().should.eql(['text/html', 'text/plain', 'image/jpeg', 'application/*']);
|
||||
})
|
||||
})
|
||||
|
||||
describe('when Accept is not populated', function(){
|
||||
it('should return []', function(){
|
||||
var ctx = context();
|
||||
ctx.accepts().should.eql([]);
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('with no valid types', function(){
|
||||
|
|
|
@ -10,13 +10,6 @@ describe('ctx.acceptsCharsets()', function(){
|
|||
ctx.acceptsCharsets().should.eql(['utf-8', 'utf-7', 'iso-8859-1']);
|
||||
})
|
||||
})
|
||||
|
||||
describe('when Accept-Charset is not populated', function(){
|
||||
it('should return an empty array', function(){
|
||||
var ctx = context();
|
||||
ctx.acceptsCharsets().should.eql([]);
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('with multiple arguments', function(){
|
||||
|
|
|
@ -10,13 +10,6 @@ describe('ctx.acceptsLanguages(langs)', function(){
|
|||
ctx.acceptsLanguages().should.eql(['es', 'pt', 'en']);
|
||||
})
|
||||
})
|
||||
|
||||
describe('when Accept-Language is not populated', function(){
|
||||
it('should return an empty array', function(){
|
||||
var ctx = context();
|
||||
ctx.acceptsLanguages().should.eql([]);
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('with multiple arguments', function(){
|
||||
|
|
Loading…
Reference in a new issue