assaf/zombie

Recommendation for mocking current date

TheFive opened this issue · 1 comments

To ease comparing testresults i use to mock the current date in my mocha tests.

first i started with the sinon lib, later I switched to mockdate (see #1046) which worked fine until Zombie 6.0

Does anyone have a recommendation for a mocking library, that works with zombie ?

Test Szenario

I switched from Zombie 6 to zombie 6, and it looks like, that browser.visit is running in an endless loop and does not call the callback function.

After commenting out the mockdate calls, everything works fine, only the comparison of the test results fails.

timekeeper seems to work in travel mode. timekeeper in freeze mode results in the same problem as mockdate.