Skip to content

Commit

Permalink
deps: update testing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jun 11, 2014
1 parent 3043682 commit 516495a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"devDependencies": {
"istanbul": "0.2.10",
"mocha": "~1.19.0",
"should": "~3.3.1",
"supertest": "~0.12.0"
"mocha": "~1.20.1",
"should": "~4.0.4",
"supertest": "~0.13.0"
},
"engines": {
"node": ">= 0.8.0"
Expand Down
10 changes: 6 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,14 @@ describe('logger()', function () {
delete req._remoteAddress;
})

request(server)
request(server.listen())
.get('/')
.set('Connection', 'keep-alive')
.end(function (err, res) {
if (err) return done(err)
lastLogLine.should.equal(res.text + '\n')
done()
res.req.connection.destroy()
server.close(done)
})
})

Expand All @@ -168,13 +169,14 @@ describe('logger()', function () {
delete req._remoteAddress;
})

request(server)
request(server.listen())
.get('/')
.set('Connection', 'keep-alive')
.end(function (err, res) {
if (err) return done(err)
lastLogLine.should.equal(res.text + '\n')
done()
res.req.connection.destroy()
server.close(done)
})
})
})
Expand Down

0 comments on commit 516495a

Please sign in to comment.