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

Simplify TokenRatesController update test case #1503

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 14, 2023

Explanation

The TokenRatesController test case for updating token rates has been simplifed by replacing controllers with stubs. The test was using a real PreferencesController, NetworkController, and TokensController.

References

This is tangentially related to #1466

Changelog

None

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

The `TokenRatesController` test case for updating token rates has been
simplifed by replacing controllers with stubs. The test was using a
real `PreferencesController`, `NetworkController`, and
`TokensController`.
@Gudahtt Gudahtt marked this pull request as ready for review July 14, 2023 02:53
@Gudahtt Gudahtt requested a review from a team as a code owner July 14, 2023 02:53
@Gudahtt Gudahtt merged commit 748baaa into main Jul 14, 2023
91 checks passed
@Gudahtt Gudahtt deleted the simplify-token-rates-controller-update-test-case branch July 14, 2023 04:45
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The `TokenRatesController` test case for updating token rates has been
simplifed by replacing controllers with stubs. The test was using a
real `PreferencesController`, `NetworkController`, and
`TokensController`.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The `TokenRatesController` test case for updating token rates has been
simplifed by replacing controllers with stubs. The test was using a
real `PreferencesController`, `NetworkController`, and
`TokensController`.
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