Closed jinky32 closed 6 years ago
Yes, your test is asynchronous but mocha thinks it's synchronous because you are not returning a promise or taking a done
parameter. See the documentation on it.
Hi - Sorry to come back on this but I'm still having issues. Would you be willing to post an answer to https://stackoverflow.com/questions/48331488/using-chai-to-test-value-of-html-element ?
Hi,
I'm new to mocha and am trying to test an express route and assert the value of the h1 rendered on the page.
I have a test:
The good news is that the test passes. The bad news is that it shouldn't. Can anyone advise what I am doing wrong here?