From 86201338392495fb567713b3c3ec036bfeedd3a5 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Thu, 2 May 2024 06:59:25 -0230 Subject: [PATCH] Update unit tests so that they cover the origin metamask case --- .../confirm-page-container-header.component.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/pages/confirmations/components/confirm-page-container/confirm-page-container-header/confirm-page-container-header.component.test.js b/ui/pages/confirmations/components/confirm-page-container/confirm-page-container-header/confirm-page-container-header.component.test.js index e7043c283d19..6a48d8473a8e 100644 --- a/ui/pages/confirmations/components/confirm-page-container/confirm-page-container-header/confirm-page-container-header.component.test.js +++ b/ui/pages/confirmations/components/confirm-page-container/confirm-page-container-header/confirm-page-container-header.component.test.js @@ -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 '.'; @@ -38,6 +39,7 @@ describe('Confirm Detail Row Component', () => { onEdit: jest.fn(), showAccountInHeader: false, accountAddress: '0xmockAccountAddress', + origin: ORIGIN_METAMASK, }; const { container } = renderWithProvider( @@ -56,6 +58,7 @@ describe('Confirm Detail Row Component', () => { onEdit: jest.fn(), showAccountInHeader: false, accountAddress: '0xmockAccountAddress', + origin: ORIGIN_METAMASK, }; const { container } = renderWithProvider(