Skip to content

Simplify setProviderType unit tests#1222

Merged
Gudahtt merged 1 commit intomainfrom
simplify-set-provider-type-unit-tests
Apr 20, 2023
Merged

Simplify setProviderType unit tests#1222
Gudahtt merged 1 commit intomainfrom
simplify-set-provider-type-unit-tests

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Apr 20, 2023

Description

The setProviderType unit tests included a static set of network metadata that was not being used. It has been updated to use a list of just the network types, following examples in other tests.

Changes

None

References

This was done in pursuit of #1203, though the connection is fairly indirect (I'm on a tangent here)

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

The `setProviderType` unit tests included a static set of network
metadata that was not being used. It has been updated to use a list of
just the network types, following examples in other tests.
result: {
baseFeePerGas: '0x1',
},
[NetworkType.mainnet, NetworkType.goerli, NetworkType.sepolia].forEach(
Copy link
Member Author

Choose a reason for hiding this comment

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

I'd strongly recommend hiding whitespace when looking at this diff. This line is basically the only one with changes, the rest are indentation/lint changes.

@Gudahtt Gudahtt marked this pull request as ready for review April 20, 2023 02:47
@Gudahtt Gudahtt requested a review from a team as a code owner April 20, 2023 02:47
@Gudahtt Gudahtt merged commit 21e2a26 into main Apr 20, 2023
@Gudahtt Gudahtt deleted the simplify-set-provider-type-unit-tests branch April 20, 2023 03:16
@legobeat legobeat mentioned this pull request Apr 25, 2023
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The `setProviderType` unit tests included a static set of network
metadata that was not being used. It has been updated to use a list of
just the network types, following examples in other tests.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
The `setProviderType` unit tests included a static set of network
metadata that was not being used. It has been updated to use a list of
just the network types, following examples in other tests.
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