Skip to content

fix: interactions test #53

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

Merged
merged 1 commit into from
Sep 4, 2024
Merged

fix: interactions test #53

merged 1 commit into from
Sep 4, 2024

Conversation

kdmoreira
Copy link
Contributor

Context

These tests currently fail because the fixtures use a fixed time instant, while the time is calculated relative to the current date. As time passes, the actual strings change (e.g., "4 months ago" will become "5 months ago" and so on).

To make these tests tolerant to time changes, I have used a matcher to check if only the start of the string matches, ignoring the time part.

@rafaeldelboni rafaeldelboni merged commit d1fe08f into main Sep 4, 2024
3 checks passed
@rafaeldelboni rafaeldelboni deleted the fix/interactions-test branch September 4, 2024 13:07
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