Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock Date.now #167

Merged
merged 1 commit into from
Dec 5, 2017
Merged

Mock Date.now #167

merged 1 commit into from
Dec 5, 2017

Conversation

bkeepers
Copy link
Contributor

@bkeepers bkeepers commented Dec 5, 2017

This is an alternative to #166. This mocks Date.now to be a fixed time, as suggested in this jest discussion.

Copy link
Contributor

@wilhelmklopp wilhelmklopp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this. Seems much cleaner 👍

Hopefully the global aspect of it doesn't have any weird unintended ramifications

@bkeepers bkeepers merged commit 663b1b7 into master Dec 5, 2017
@bkeepers bkeepers deleted the date-now branch December 5, 2017 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants