From 94c6b325231361f632bf326b8ba45de35d01c390 Mon Sep 17 00:00:00 2001 From: kanhaiya Date: Tue, 14 Nov 2023 20:31:14 +0530 Subject: [PATCH] fixed the CheckInWrapper test --- src/components/CheckIn/CheckInWrapper.test.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/CheckIn/CheckInWrapper.test.tsx b/src/components/CheckIn/CheckInWrapper.test.tsx index 4deadc81d6..9cb7fef4ba 100644 --- a/src/components/CheckIn/CheckInWrapper.test.tsx +++ b/src/components/CheckIn/CheckInWrapper.test.tsx @@ -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 = { @@ -19,7 +22,7 @@ describe('Testing CheckIn Wrapper', () => { test('The button to open and close the modal should work properly', async () => { const { queryByText } = render( - +