upgrade supertest to ^1.0.1

This commit is contained in:
Yazhong Liu 2015-05-24 12:39:53 +08:00
parent 04dfb19cb2
commit 90b05c09e5
2 changed files with 2 additions and 1 deletions

View file

@ -48,7 +48,7 @@
"make-lint": "^1.0.1", "make-lint": "^1.0.1",
"mocha": "^2.0.1", "mocha": "^2.0.1",
"should": "^3.1.0", "should": "^3.1.0",
"supertest": "~0.15.0", "supertest": "^1.0.1",
"test-console": "^0.7.1" "test-console": "^0.7.1"
}, },
"engines": { "engines": {

View file

@ -105,6 +105,7 @@ describe('app.use(fn)', function(){
request(server) request(server)
.get('/') .get('/')
.expect(404)
.end(function(err){ .end(function(err){
if (err) return done(err); if (err) return done(err);
calls.should.eql([1,2,3,4,5,6]); calls.should.eql([1,2,3,4,5,6]);