L
L
Lite_robot2019-06-26 17:42:28
JavaScript
Lite_robot, 2019-06-26 17:42:28

How can Mocha test async code with Async.waterfall?

Hello
There is such a test, how to synchronize it, given what it Async.waterfallreturns undefined?
https://pastebin.com/brgwK0Pb

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lite_robot, 2019-07-06
@Lite_robot

Changed the async library, after which everything worked.

G
grinat, 2019-06-26
@grinat

The node has a table for years as there is async / await, and they are also in the urine:

it('foo', async () => {
   await 
   await 
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question