Closed falconmick closed 6 years ago
Typically you want to just return a promise in mocha tests, and not use done
at all. Otherwise, you need .catch(done)
on the promise, or else mocha won't be able to know that expect
threw.
I will have a go later, thanks.
Happy to reopen if this is still an issue.
Hey.
I am currently writing some React Mocha tests. When I call the following my test times out rather than giving me an error message of which expect failed.
any ideas?
entire test code: