Final fixes, all tests running

This commit is contained in:
Angelos Chalaris
2018-06-18 20:41:57 +03:00
parent a3390a6588
commit 3a89fe304a
49 changed files with 2189 additions and 1198 deletions

View File

@ -5,11 +5,11 @@ test('pipeAsyncFunctions is a Function', () => {
expect(pipeAsyncFunctions).toBeInstanceOf(Function);
});
test('pipeAsyncFunctions result should be 15', () => {
expect(await pipeAsyncFunctions(
expect(pipeAsyncFunctions(
(x) => x + 1,
(x) => new Promise((resolve) => setTimeout(() => resolve(x + 2), 0)),
(x) => x + 3,
async (x) => await x + 4,
)
(5)).toBe(15);
(5)).resolves.toBe(15);
});