UNPKG

507 BJavaScriptView Raw
1var parallel = require('../')
2var test = require('tape')
3
4test('empty tasks array', function (t) {
5 t.plan(1)
6
7 parallel([], function (err) {
8 t.error(err)
9 })
10})
11
12test('empty tasks object', function (t) {
13 t.plan(1)
14
15 parallel({}, function (err) {
16 t.error(err)
17 })
18})
19
20test('empty tasks array and no callback', function (t) {
21 parallel([])
22 t.pass('did not throw')
23 t.end()
24})
25
26test('empty tasks object and no callback', function (t) {
27 parallel({})
28 t.pass('did not throw')
29 t.end()
30})