Skip to content

Commit

Permalink
fixed the failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kanhaiya04 committed Nov 14, 2023
1 parent 2c978a9 commit 27b3ba6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/CheckIn/CheckInModal.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 Check In Attendees Modal', () => {
const props = {
Expand All @@ -21,7 +24,7 @@ describe('Testing Check In Attendees Modal', () => {

test('The modal should be rendered, and all the fetched users should be shown properly and user filtering should work', async () => {
const { queryByText, queryByLabelText } = render(
<MockedProvider addTypename={false} mocks={checkInQueryMock}>
<MockedProvider addTypename={false} link={link}>
<BrowserRouter>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<Provider store={store}>
Expand Down

0 comments on commit 27b3ba6

Please sign in to comment.