Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bluebird to version 3.0.2 πŸš€ #1875

Merged
merged 2 commits into from Oct 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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