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