diff options
Diffstat (limited to 'support/es.test.js')
-rw-r--r-- | support/es.test.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/support/es.test.js b/support/es.test.js index da008fa..3dbb7d6 100644 --- a/support/es.test.js +++ b/support/es.test.js @@ -4,6 +4,7 @@ import {waterfall as waterfall} from "../build-es/index"; import {wrapSync} from "../build-es/index"; import async from "../build-es/index"; import constant from "../build-es/constant"; +import forEachOf from "../build-es/forEachOf"; waterfall([ constant(42), @@ -18,6 +19,12 @@ waterfall([ if (val !== 1 && key !== 'a') return cb(new Error('fail!')); cb(); }, function (err) { next (err, val)}); + }, + function (val, next) { + forEachOf([1, 2, 3], function (v, key, cb) { + val += key + cb() + }, function (err) { next(err, val - 3) }) } ], function (err, result) { if (err) { throw err; } |