Skip to content

Commit

Permalink
(chore) Restore OpenmrsDatePicker mock (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored May 18, 2024
1 parent 35438c9 commit 0b43b83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/framework/esm-framework/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { NEVER } from 'rxjs';
import type {} from '@openmrs/esm-globals';
import * as utils from '@openmrs/esm-utils';
import { OpenmrsDatePicker as realOpenmrsDatePicker } from './src';

window.i18next = { ...window.i18next, language: 'en' };

Expand Down Expand Up @@ -59,6 +60,7 @@ export const LeftNavMenu = jest.fn(() => <div>Left Nav Menu</div>);
export const setLeftNav = jest.fn();
export const unsetLeftNav = jest.fn();
export const ResponsiveWrapper = jest.fn(({ children }) => <>{children}</>);
export const OpenmrsDatePicker = jest.fn(realOpenmrsDatePicker);
export const ErrorState = jest.fn(() => <div>Error State</div>);

export const CustomOverflowMenu = jest.fn(({ menuTitle, children }) => (
Expand Down

0 comments on commit 0b43b83

Please sign in to comment.