Hey Brad I joined a new project and was starting out by fixing some linter issues in our test code when I noticed that when running the full test run the tests just crashed. They were working before I fixed up some linter issues but now I get the error that superagent (the NPM module… To read more click here.
Hey Brad I have a function which returns a promise, how the heck do I test that with Mocha? TL;DR Either call the done callback or simply return the promise. Checkout Things to Watch out For when testing Promises No worries I can help, the mocha testing framework does support testing asynchronous code. The only… To read more click here.