kmiyashiro / grunt-mocha

[MOVED] Grunt task for running mocha specs in a headless browser (PhantomJS)
MIT License
370 stars 106 forks source link

the mocha task results and the browser test results not the same #165

Closed deostroll closed 7 years ago

deostroll commented 7 years ago

I've created a project and setup grunt mocha task properly. I've also setup another localhost server so that I can manually inspect the tests. However the results do not agree.

https://github.com/deostroll/jsmd

The following two commits should give an idea about how to reproduce the issue: dbe6a5132d7b4fa688af003e119d286c192b8a46 57dc4a6317e9f33e31bd79ce1be0b63f911d39af

deostroll commented 7 years ago

There is some exception in jquery deferred chain that is causing the problem. For now it can be solved by using a .done() instead of a .then()