UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

33 lines (26 loc) 456 B
var parallel = require('../') var test = require('tape') test('no callback (array)', function (t) { t.plan(2) var tasks = [ function (cb) { t.pass('cb 1') }, function (cb) { t.pass('cb 2') } ] parallel(tasks) }) test('no callback (object)', function (t) { t.plan(2) var tasks = { one: function (cb) { t.pass('cb 1') }, two: function (cb) { t.pass('cb 2') } } parallel(tasks) })