Skip to content

Commit

Permalink
Merge pull request #1875 from request/greenkeeper-bluebird-3.0.2
Browse files Browse the repository at this point in the history
Update bluebird to version 3.0.2 πŸš€
  • Loading branch information
simov committed Oct 29, 2015
2 parents 1f33797 + ad7360f commit 0c9e9c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -68,6 +68,6 @@
"server-destroy": "^1.0.1",
"tape": "^4.2.0",
"taper": "^0.4.0",
"bluebird": "^2.10.1"
"bluebird": "^3.0.2"
}
}
6 changes: 3 additions & 3 deletions tests/test-promise.js
Expand Up @@ -18,7 +18,7 @@ tape('setup', function(t) {

tape('promisify convenience method', function(t) {
var get = request.get
var p = Promise.promisify(get)
var p = Promise.promisify(get, {multiArgs: true})
p('http://localhost:6767')
.then(function (results) {
var res = results[0]
Expand All @@ -28,7 +28,7 @@ tape('promisify convenience method', function(t) {
})

tape('promisify request function', function(t) {
var p = Promise.promisify(request)
var p = Promise.promisify(request, {multiArgs: true})
p('http://localhost:6767')
.spread(function (res, body) {
t.equal(res.statusCode, 200)
Expand All @@ -37,7 +37,7 @@ tape('promisify request function', function(t) {
})

tape('promisify all methods', function(t) {
Promise.promisifyAll(request)
Promise.promisifyAll(request, {multiArgs: true})
request.getAsync('http://localhost:6767')
.spread(function (res, body) {
t.equal(res.statusCode, 200)
Expand Down

0 comments on commit 0c9e9c1

Please sign in to comment.