From e54e847704c82560d6086d47e1f9782b87217578 Mon Sep 17 00:00:00 2001 From: Stephen Okpalaononuju Date: Tue, 19 Dec 2023 15:39:56 +0100 Subject: [PATCH] ch: fix failing test --- .../src/___tests__/search/ContactDetails.test.tsx | 8 ++++++++ plugin-hrm-form/src/___tests__/search/Search.test.tsx | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/plugin-hrm-form/src/___tests__/search/ContactDetails.test.tsx b/plugin-hrm-form/src/___tests__/search/ContactDetails.test.tsx index 2dcab47351..1bcbd350d9 100644 --- a/plugin-hrm-form/src/___tests__/search/ContactDetails.test.tsx +++ b/plugin-hrm-form/src/___tests__/search/ContactDetails.test.tsx @@ -35,6 +35,13 @@ jest.mock('@twilio/flex-ui', () => ({ Actions: { invokeAction: jest.fn() }, })); +jest.mock('../../states/case/caseBanners', () => ({ + __esModule: true, + selectCaseMergingBanners: jest.fn(() => ({ + showRemovedFromCaseBanner: true, + })), +})); + // eslint-disable-next-line react-hooks/rules-of-hooks const { mockFetchImplementation, mockReset, buildBaseURL } = useFetchDefinitions(); @@ -150,6 +157,7 @@ beforeAll(async () => { detailsExpanded: {}, }, }, + removedCaseId: {}, }, [csamReportBase]: { tasks: {}, diff --git a/plugin-hrm-form/src/___tests__/search/Search.test.tsx b/plugin-hrm-form/src/___tests__/search/Search.test.tsx index 76ad1d9955..d0b1bfb984 100644 --- a/plugin-hrm-form/src/___tests__/search/Search.test.tsx +++ b/plugin-hrm-form/src/___tests__/search/Search.test.tsx @@ -57,6 +57,13 @@ jest.mock('@twilio/flex-ui', () => ({ }, })); +jest.mock('../../states/case/caseBanners', () => ({ + __esModule: true, + selectCaseMergingBanners: jest.fn(() => ({ + showRemovedFromCaseBanner: true, + })), +})); + function createState( taskId, { @@ -127,6 +134,7 @@ function createState( detailsExpanded: {}, }, }, + removedCaseId: {}, }, [csamReportBase]: { contacts: {},