-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: refactor notifications unit tests #11431
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work moving the toggle in a hook!
I have questions about the channel ids and android test.
Some comments also about naming mostly to make the tests clear as doc.
app/components/Views/Settings/NotificationsSettings/index.test.tsx
Outdated
Show resolved
Hide resolved
app/components/Views/Settings/NotificationsSettings/index.test.tsx
Outdated
Show resolved
Hide resolved
app/components/Views/Settings/NotificationsSettings/index.test.tsx
Outdated
Show resolved
Hide resolved
app/components/Views/Settings/NotificationsSettings/useToggleNotifications.test.tsx
Outdated
Show resolved
Hide resolved
app/components/Views/Settings/NotificationsSettings/useToggleNotifications.test.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Nico MASSART <[email protected]>
Co-authored-by: Nico MASSART <[email protected]>
….tsx Co-authored-by: Nico MASSART <[email protected]>
…otifications.test.tsx Co-authored-by: Nico MASSART <[email protected]>
…otifications.test.tsx Co-authored-by: Nico MASSART <[email protected]>
Co-authored-by: Nico MASSART <[email protected]>
Co-authored-by: Nico MASSART <[email protected]>
Co-authored-by: Nico MASSART <[email protected]>
…taMask/metamask-mobile into fix/refactor-notifications-unit-tests
mistakenly removed. Put it Back. |
Co-authored-by: Nico MASSART <[email protected]>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one very minor comment.
The rest is ok.
app/components/Views/Settings/NotificationsSettings/useToggleNotifications.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR addresses all comments from this PR related to unit tests best practices.
Related issues
Fixes: #11250
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist