Skip to content

Commit 340c1d0

Browse files
committed
Update mock envs to fix test regression
1 parent e9cdb34 commit 340c1d0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/App/tests/App.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ describe('App - authenticated', () => {
242242
`${LIST_COMMODITY_URL}?${viewDetailsQuery}=1`
243243
);
244244
wrapper.update();
245-
expect(wrapper.find('ViewDetails')).toHaveLength(1);
245+
expect(wrapper.find('ViewDetailsWrapper')).toHaveLength(1);
246246

247247
// go to new resource page
248248
(wrapper.find('Router').prop('history') as RouteComponentProps['history']).push(

app/src/configs/__mocks__/env.ts

+2
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ export const ENABLE_QUEST = true;
4444
export const BACKEND_ACTIVE = false;
4545

4646
export const ENABLE_FHIR_USER_MANAGEMENT = true;
47+
48+
export const COMMODITIES_LIST_RESOURCE_ID = 'ad';

0 commit comments

Comments
 (0)