Skip to content

Commit

Permalink
(fix) remove dashboard mocks after revert of O3-3866
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoodrich committed Sep 19, 2024
1 parent 159dec8 commit 7b910a6
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ describe('FormRenderer', () => {
closeWorkspaceWithSavedChanges: jest.fn(),
promptBeforeClosing: jest.fn(),
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

test('renders FormError component when there is an error', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,6 @@ function renderAllergyForm(props = {}) {
patient: mockPatient,
patientUuid: mockPatient.id,
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

render(<AllergyForm {...defaultProps} {...props} />);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ const defaultProps = {
patientUuid: mockPatient.id,
promptBeforeClosing: jest.fn(),
setTitle: jest.fn,
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

const mockPastVisits = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ const testProps = {
promptBeforeClosing: mockPromptBeforeClosing,
showVisitEndDateTimeFields: false,
setTitle: mockSetTitle,
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

const mockSaveVisit = jest.mocked(saveVisit);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ const defaultProps = {
promptBeforeClosing: jest.fn(),
formContext: 'creating' as 'creating' | 'editing',
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

function renderConditionsForm(props = {}) {
Expand Down
3 changes: 0 additions & 3 deletions packages/esm-patient-flags-app/src/flags/flags-list.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ it('renders an Edit form that enables users to toggle flags on or off', async ()
patientUuid={mockPatient.id}
promptBeforeClosing={jest.fn()}
setTitle={jest.fn()}
setCancelTitle={jest.fn()}
setCancelMessage={jest.fn()}
setCancelConfirmText={jest.fn()}
/>,
);

Expand Down
3 changes: 0 additions & 3 deletions packages/esm-patient-forms-app/src/forms/form-entry.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ const testProps = {
formInfo: { formUuid: 'some-form-uuid' },
mutateForm: jest.fn(),
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

const mockFormEntrySub = jest.fn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ const testProps = {
closeWorkspaceWithSavedChanges: mockCloseWorkspaceWithSavedChanges,
promptBeforeClosing: mockPromptBeforeClosing,
setTitle: mockSetTitle,
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

mockUseConfig.mockReturnValue({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ function renderAddLabOrderWorkspace() {
promptBeforeClosing={mockPromptBeforeClosing}
patientUuid={ptUuid}
setTitle={jest.fn()}
setCancelTitle={jest.fn()}
setCancelMessage={jest.fn()}
setCancelConfirmText={jest.fn()}
/>,
);
return { mockCloseWorkspace, mockPromptBeforeClosing, mockCloseWorkspaceWithSavedChanges, ...view };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ export default function AddLabOrderWorkspace({
closeWorkspaceWithSavedChanges={closeWorkspaceWithSavedChanges}
promptBeforeClosing={promptBeforeClosing}
setTitle={() => {}}
setCancelTitle={() => {}}
setCancelMessage={() => {}}
setCancelConfirmText={() => {}}
/>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ const defaultProps = {
type: 'My List',
},
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

const mockPatientListData = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ function renderAddDrugOrderWorkspace() {
promptBeforeClosing={() => false}
patientUuid={'mock-patient-uuid'}
setTitle={jest.fn()}
setCancelTitle={jest.fn()}
setCancelMessage={jest.fn()}
setCancelConfirmText={jest.fn()}
/>,
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ const defaultProps = {
closeWorkspaceWithSavedChanges: jest.fn(),
promptBeforeClosing: jest.fn(),
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

function renderVisitNotesForm(props = {}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ const testProps = {
patientUuid: mockPatient.id,
promptBeforeClosing: mockPromptBeforeClosing,
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

jest.mock('./programs.resource', () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ const testProps = {
promptBeforeClosing: () => {},
formContext: 'creating' as 'creating' | 'editing',
setTitle: jest.fn(),
setCancelTitle: jest.fn(),
setCancelMessage: jest.fn(),
setCancelConfirmText: jest.fn(),
};

const mockShowSnackbar = jest.mocked(showSnackbar);
Expand Down

0 comments on commit 7b910a6

Please sign in to comment.