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

Unit test for useBooleanState hook #4021

Merged
merged 4 commits into from Sep 26, 2023
Merged

Conversation

CarolineDenis
Copy link
Contributor

No description provided.

Copy link
Member

@maxpatiiuk maxpatiiuk left a comment

Choose a reason for hiding this comment

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

The tests look good and very thorough (maybe too much 😊)!
though could you add at least 1 test case for making sure that when default value provided to useBooleanState changes, then the state value also changes to that value? (basically, making sure that useBooleanState integrates with useTriggerState correctly)

Triggered by 5d32985 on branch refs/heads/useBooleanState-unitTest
Copy link
Contributor

@melton-jason melton-jason left a comment

Choose a reason for hiding this comment

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

Very nice!

@CarolineDenis CarolineDenis marked this pull request as ready for review September 20, 2023 14:18
Copy link
Member

@maxpatiiuk maxpatiiuk left a comment

Choose a reason for hiding this comment

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

🎉

@CarolineDenis CarolineDenis added this to the 7.9.1 milestone Sep 21, 2023
@grantfitzsimmons grantfitzsimmons changed the base branch from v7.9-dev to production September 26, 2023 02:33
@CarolineDenis CarolineDenis merged commit 20db7f5 into production Sep 26, 2023
9 checks passed
@CarolineDenis CarolineDenis deleted the useBooleanState-unitTest branch September 26, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants