Browse files

tests

  • Loading branch information...
1 parent e8c3736 commit 2adf02075329451e513730e0421a6998d9e314c6 @tj tj committed Nov 19, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 test/req.accepted.js
View
8 test/req.accepted.js
@@ -16,9 +16,7 @@ describe('req', function(){
request(app)
.get('/')
.set('Accept', 'text/html;q=.5, application/json')
- .end(function(){
- done();
- });
+ .expect(200, done);
})
describe('when Accept is not present', function(){
@@ -32,9 +30,7 @@ describe('req', function(){
request(app)
.get('/')
- .end(function(){
- done();
- });
+ .expect(200, done);
})
})
})

0 comments on commit 2adf020

Please sign in to comment.