Skip to content

Commit

Permalink
test: Remove obsolete test fixture state (#6879)
Browse files Browse the repository at this point in the history
The `NetworkController` state property `provider` was still referenced
in a few unit tests, despite the fact that it no longer exists. All
such obsolete state references have been removed.

This change was done to simplify PR #6872, which is part of
MetaMask/mobile-planning#798
  • Loading branch information
Gudahtt authored Jul 25, 2023
1 parent 8e35f3f commit abbd9b2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions app/components/UI/AccountInfoCard/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ const initialState = {
type: 'sepolia',
nickname: 'Sepolia',
},
provider: {
ticker: 'eth',
},
},
TokenBalancesController: {
contractBalances: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ const initialState = {
type: 'sepolia',
nickname: 'Sepolia',
},
provider: {
ticker: 'eth',
},
},
AddressBookController: {
addressBook: {},
Expand Down
6 changes: 0 additions & 6 deletions app/components/hooks/useExistingAddress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jest.mock('react-redux', () => ({
},
NetworkController: {
network: 1,
provider: {
ticker: 'eth',
},
},
AddressBookController: {
addressBook: {
Expand Down Expand Up @@ -52,9 +49,6 @@ const initialState = {
},
NetworkController: {
network: 1,
provider: {
ticker: 'eth',
},
},
AddressBookController: {
addressBook: {
Expand Down

0 comments on commit abbd9b2

Please sign in to comment.