diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:59:49 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:59:49 +0100 |
| commit | 1f6838d2c37acd15331f56b80bdd09ac0aae2405 (patch) | |
| tree | 9907952475ff0503857cc33bc51b27a3618ad5d6 /lib | |
| parent | eca69e9212cec84de5aa714fe50a3835a8d6a9c6 (diff) | |
Add tests around forEachSeries and ensure it resolves to undefined
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/promises.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/promises.js b/lib/promises.js index f448ca9..f008200 100644 --- a/lib/promises.js +++ b/lib/promises.js @@ -2,9 +2,14 @@ var _ = require("underscore"); var bluebird = require("bluebird/js/release/promise")(); exports.defer = defer; +exports.Promise = bluebird.Promise; exports.resolve = bluebird.resolve; exports.reject = bluebird.reject; -exports.forEachSeries = bluebird.mapSeries; + +exports.forEachSeries = function(array, func) { + return bluebird.mapSeries(array, func).then(function() { + }); +}; var props = exports.props = function(obj) { // We rely on .keys() and .values() returning properties in the same order. |
