You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, we can create our own custom test helper that still uses done() internally but is named something like "assert error listener triggered", etc.
Should we keep using
mocha
done
function or should we use some specific tool for that?Refs:
https://stackoverflow.com/questions/16826352/whats-the-best-way-to-unit-test-an-event-being-emitted-in-nodejs
https://www.npmjs.com/package/chai-events
Extracted from: #369 (comment)
The text was updated successfully, but these errors were encountered: