fix test in negotiation

This commit is contained in:
dead_horse 2014-03-24 01:52:31 +08:00
parent 3f5e3a5173
commit 3185461493

View File

@ -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);