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
31 lines (24 loc) • 507 B
JavaScript
var parallel = require('../')
var test = require('tape')
test('empty tasks array', function (t) {
t.plan(1)
parallel([], function (err) {
t.error(err)
})
})
test('empty tasks object', function (t) {
t.plan(1)
parallel({}, function (err) {
t.error(err)
})
})
test('empty tasks array and no callback', function (t) {
parallel([])
t.pass('did not throw')
t.end()
})
test('empty tasks object and no callback', function (t) {
parallel({})
t.pass('did not throw')
t.end()
})