Closed hoisie closed 10 years ago
Thanks for the good bug report - repro'd it right away and used it for the unit test. Reference the git repo directly until we get a new npm package up.
Wow, thanks for the quick fix! Mocha-phantomjs has been an incredible tool for us.
I've been trying to get mocha-phantomjs to work with mocha events, but I haven't been able to do so. I have a module that runs after each mocha test ends and checks if certain conditions are met. It's similar to the global leaks detector, and it's used to detect event handler memory leaks. I constructed a test case that may explain the issue better:
The HTML for this test is here:
And
events.js
is here:This test fails as expected in Chrome and phantomjs, but it passes in mocha-phantomjs.