summaryrefslogtreecommitdiff
path: root/support/es.test.js
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2017-10-20 17:09:10 -0700
committerAlexander Early <alexander.early@gmail.com>2017-10-20 17:09:10 -0700
commit1ade3669faad6fee62fd1f3a7675cf075c2893d5 (patch)
treeaaeffa2f1725c749d78ceab72b5cbf9e426c0d92 /support/es.test.js
parent163a251063eb5504a4b8e9ea1b1a6c854b345f86 (diff)
downloadasync-generate-index.tar.gz
include individual module files for aliasesgenerate-index
Diffstat (limited to 'support/es.test.js')
-rw-r--r--support/es.test.js7
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; }