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

refactor(assets-controllers): Simplify TokensController tests #3745

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jan 8, 2024

Explanation

The TokensController tests have been refactored to use mocks instead of a real PreferencesController instance. This should make the tests easier to read, and it will decouple them from the PreferencesController.

References

Relates to #3708

Changelog

No changes

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

@Gudahtt Gudahtt marked this pull request as ready for review January 8, 2024 16:37
@Gudahtt Gudahtt requested a review from a team as a code owner January 8, 2024 16:37
The `TokensController` tests have been refactored to use mocks instead
of a real `PreferencesController` instance. This should make the tests
easier to read, and it will decouple them from the
`PreferencesController`.

Relates to #3708
@Gudahtt Gudahtt force-pushed the refactor-tokens-controller-tests branch from d8f74fd to 0abbd27 Compare January 8, 2024 18:05
@Gudahtt Gudahtt merged commit afdbf0f into main Jan 8, 2024
136 checks passed
@Gudahtt Gudahtt deleted the refactor-tokens-controller-tests branch January 8, 2024 18:13
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