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

test: remove unused test #4703

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

Prithpal-Sooriya
Copy link
Contributor

@Prithpal-Sooriya Prithpal-Sooriya commented Sep 13, 2024

Explanation

We have a mock and a test that is not used anymore. It still passed the CI, but actually doesn't test anything.

References

Changelog

@metamask/profile-sync-controller

  • REMOVED: unused mock function.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@Prithpal-Sooriya Prithpal-Sooriya added the team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications label Sep 13, 2024
@Prithpal-Sooriya Prithpal-Sooriya marked this pull request as ready for review September 16, 2024 14:32
@Prithpal-Sooriya Prithpal-Sooriya requested a review from a team as a code owner September 16, 2024 14:32
@@ -1512,17 +1512,9 @@ function mockUserStorageMessenger(options?: {
return mockAccountsUpdateAccountMetadata(args.slice(1));
}

if (actionType === 'AccountsController:getAccountByAddress') {
Copy link
Contributor Author

@Prithpal-Sooriya Prithpal-Sooriya Sep 16, 2024

Choose a reason for hiding this comment

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

This action does not exist - we are not using this anymore:

Screenshot 2024-09-13 at 17 30 10

@Prithpal-Sooriya Prithpal-Sooriya merged commit 2fe4b0b into main Sep 16, 2024
116 checks passed
@Prithpal-Sooriya Prithpal-Sooriya deleted the notifications/remove-unused-mock branch September 16, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants