Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Refactor controller initialization in tests#251

Merged
Gudahtt merged 3 commits intomainfrom
refactor-tests
Jul 18, 2023
Merged

Refactor controller initialization in tests#251
Gudahtt merged 3 commits intomainfrom
refactor-tests

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Jul 17, 2023

Description

Each test now uses a helper function to construct the keyring controller rather than using beforeEach. This eliminates redundant redundancy in cases where the controller was being overwritten, and makes it easier for future tests to customize how the controller is initialized.

Changes

None

References

N/A

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@Gudahtt Gudahtt requested a review from a team as a code owner July 17, 2023 23:51
mikesposito
mikesposito previously approved these changes Jul 18, 2023
Copy link
Copy Markdown
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

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

Looks good, I just left a couple of notes

Gudahtt added 3 commits July 18, 2023 09:29
Each test now uses a helper function to construct the keyring
controller rather than using `beforeEach`. This eliminates redundant
redundancy in cases where the controller was being overwritten, and
makes it easier for future tests to customize how the controller is
initialized.
@Gudahtt
Copy link
Copy Markdown
Member Author

Gudahtt commented Jul 18, 2023

Rebased to resolve conflicts

@Gudahtt Gudahtt requested a review from mikesposito July 18, 2023 12:00
Copy link
Copy Markdown
Contributor

@legobeat legobeat left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt merged commit 647eb9d into main Jul 18, 2023
@Gudahtt Gudahtt deleted the refactor-tests branch July 18, 2023 12:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants