Skip to content

Commit

Permalink
ch: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
acedeywin committed Dec 19, 2023
1 parent 193e9dd commit e54e847
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin-hrm-form/src/___tests__/search/ContactDetails.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -150,6 +157,7 @@ beforeAll(async () => {
detailsExpanded: {},
},
},
removedCaseId: {},
},
[csamReportBase]: {
tasks: {},
Expand Down
8 changes: 8 additions & 0 deletions plugin-hrm-form/src/___tests__/search/Search.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ jest.mock('@twilio/flex-ui', () => ({
},
}));

jest.mock('../../states/case/caseBanners', () => ({
__esModule: true,
selectCaseMergingBanners: jest.fn(() => ({
showRemovedFromCaseBanner: true,
})),
}));

function createState(
taskId,
{
Expand Down Expand Up @@ -127,6 +134,7 @@ function createState(
detailsExpanded: {},
},
},
removedCaseId: {},
},
[csamReportBase]: {
contacts: {},
Expand Down

0 comments on commit e54e847

Please sign in to comment.