Skip to content

Commit

Permalink
fixed the CheckInWrapper test
Browse files Browse the repository at this point in the history
  • Loading branch information
kanhaiya04 committed Nov 14, 2023
1 parent a58c5a1 commit 94c6b32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/CheckIn/CheckInWrapper.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { ToastContainer } from 'react-toastify';
import { LocalizationProvider } from '@mui/x-date-pickers';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { checkInQueryMock } from './mocks';
import { StaticMockLink } from 'utils/StaticMockLink';

const link = new StaticMockLink(checkInQueryMock, true);

describe('Testing CheckIn Wrapper', () => {
const props = {
Expand All @@ -19,7 +22,7 @@ describe('Testing CheckIn Wrapper', () => {

test('The button to open and close the modal should work properly', async () => {
const { queryByText } = render(
<MockedProvider addTypename={false} mocks={checkInQueryMock}>
<MockedProvider addTypename={false} link={link}>
<BrowserRouter>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<Provider store={store}>
Expand Down

0 comments on commit 94c6b32

Please sign in to comment.