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

zulip_binding: testable version of DateTime.now #1363

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Komyyy
Copy link

@Komyyy Komyyy commented Feb 17, 2025

This PR adds testable version of DateTime.now as a method of ZulipBinding, and replace DateTime.now with ZulipBinding.instance.now.
Also, this PR reduces some redundant arguments for current time; these arguments are not needed because we can use withClock for testing.

@Komyyy Komyyy changed the title test: testable DateTime.now test: testable version of DateTime.now Feb 17, 2025
@Komyyy Komyyy marked this pull request as ready for review February 17, 2025 11:27
@Komyyy Komyyy changed the title test: testable version of DateTime.now zulip_binding: testable version of DateTime.now Feb 18, 2025
@PIG208 PIG208 added this to the M6: Post-launch milestone Feb 18, 2025
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