mirror of
https://github.com/koajs/examples.git
synced 2026-01-18 14:38:19 +00:00
fix test in negotiation
This commit is contained in:
parent
3f5e3a5173
commit
3185461493
@ -50,7 +50,7 @@ describe('negotiation', function() {
|
||||
it('should give precedence to the first accepted type', function(done) {
|
||||
request
|
||||
.get('/tobi')
|
||||
.set('Accept', 'Accept: text/html; q=0.9, */*; q=0.1')
|
||||
.set('Accept', '*/*')
|
||||
.expect(200)
|
||||
.expect('Content-Type', /json/)
|
||||
.expect('{"name":"tobi","species":"ferret"}', done);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user