Tests for fileLines, runAsync, promisesInSeries
This commit is contained in:
@ -5,9 +5,11 @@ test('Testing runPromisesInSeries', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof runPromisesInSeries === 'function', 'runPromisesInSeries is a Function');
|
||||
const delay = d => new Promise(r => setTimeout(r, d));
|
||||
runPromisesInSeries([() => delay(100), () => delay(200).then(() => t.pass('Runs promises in series'))]);
|
||||
//t.deepEqual(runPromisesInSeries(args..), 'Expected');
|
||||
//t.equal(runPromisesInSeries(args..), 'Expected');
|
||||
//t.false(runPromisesInSeries(args..), 'Expected');
|
||||
//t.throws(runPromisesInSeries(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user