Updated the test system
This commit is contained in:
22
test/chainAsync.test.js
Normal file
22
test/chainAsync.test.js
Normal file
@ -0,0 +1,22 @@
|
||||
const expect = require('expect');
|
||||
const {chainAsync} = require('./_30s.js');
|
||||
|
||||
test('chainAsync is a Function', () => {
|
||||
expect(chainAsync).toBeInstanceOf(Function);
|
||||
});
|
||||
|
||||
test('Calls all functions in an array', () => {
|
||||
chainAsync([
|
||||
next => {
|
||||
next();
|
||||
},
|
||||
next => {
|
||||
(() => {
|
||||
next();
|
||||
})();
|
||||
},
|
||||
next => {
|
||||
expect(true).toBeTruthy();
|
||||
}
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user