Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Recommendation for mocking current date #1179

Open
TheFive opened this issue Oct 27, 2018 · 1 comment
Open

Recommendation for mocking current date #1179

TheFive opened this issue Oct 27, 2018 · 1 comment

Comments

@TheFive
Copy link

TheFive commented Oct 27, 2018

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.

@TheFive
Copy link
Author

TheFive commented Oct 27, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant