Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
@ -1,15 +0,0 @@
|
||||
const test = require('tape');
|
||||
const runPromisesInSeries = require('./runPromisesInSeries.js');
|
||||
|
||||
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