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:
Jonathan Ong 2014-06-03 21:35:11 -07:00
parent 29687cb253
commit 11cf47c8a6
3 changed files with 2 additions and 23 deletions

View file

@ -10,13 +10,6 @@ describe('ctx.accepts(types)', function(){
ctx.accepts().should.eql(['text/html', 'text/plain', 'image/jpeg', 'application/*']); 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(){ describe('with no valid types', function(){

View file

@ -10,13 +10,6 @@ describe('ctx.acceptsCharsets()', function(){
ctx.acceptsCharsets().should.eql(['utf-8', 'utf-7', 'iso-8859-1']); 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(){ describe('with multiple arguments', function(){

View file

@ -10,13 +10,6 @@ describe('ctx.acceptsLanguages(langs)', function(){
ctx.acceptsLanguages().should.eql(['es', 'pt', 'en']); 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(){ describe('with multiple arguments', function(){