Skip to content

Commit

Permalink
Update unit tests so that they cover the origin metamask case
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed May 2, 2024
1 parent 5787557 commit aa4c933
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import configureStore from 'redux-mock-store';
import { NetworkStatus } from '@metamask/network-controller';
import { NetworkType } from '@metamask/controller-utils';
import { ORIGIN_METAMASK } from '../../../../../../shared/constants/app';
import { renderWithProvider } from '../../../../../../test/lib/render-helpers';
import { getEnvironmentType } from '../../../../../../app/scripts/lib/util';
import ConfirmPageContainerHeader from '.';
Expand Down Expand Up @@ -38,6 +39,7 @@ describe('Confirm Detail Row Component', () => {
onEdit: jest.fn(),
showAccountInHeader: false,
accountAddress: '0xmockAccountAddress',
origin: ORIGIN_METAMASK,
};

const { container } = renderWithProvider(
Expand All @@ -56,6 +58,7 @@ describe('Confirm Detail Row Component', () => {
onEdit: jest.fn(),
showAccountInHeader: false,
accountAddress: '0xmockAccountAddress',
origin: ORIGIN_METAMASK,
};

const { container } = renderWithProvider(
Expand Down

0 comments on commit aa4c933

Please sign in to comment.