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

Use Sinon for faking date in tests #491

Merged
merged 2 commits into from
Jun 16, 2018
Merged

Conversation

MitMaro
Copy link
Contributor

@MitMaro MitMaro commented Jun 14, 2018

Sinon.JS provides handling of fake dates. This change replaces the fakeDate utility with the equivalent Sinon.JS ability.

@MitMaro
Copy link
Contributor Author

MitMaro commented Jun 14, 2018

I just noticed, and not sure how I missed it the first time, that this project already has sinon as a dependency and already uses the lolex support it provides.

Sinon.JS provides a project called lolex to handle faking dates. This
change replaces the fakeDate utility with the equivalent Sinon.JS code.
@MitMaro
Copy link
Contributor Author

MitMaro commented Jun 14, 2018

Updated the PR to use Sinon directly.

@MitMaro MitMaro changed the title Use lolex for faking date in tests Use Sinon for faking date in tests Jun 14, 2018
@ziluvatar ziluvatar merged commit 677ead6 into auth0:master Jun 16, 2018
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