File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,27 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
13
13
import { checkInQueryMock } from './mocks' ;
14
14
import { StaticMockLink } from 'utils/StaticMockLink' ;
15
15
16
+ /**
17
+ * This file contains unit tests for the CheckInWrapper component.
18
+ *
19
+ * The tests cover:
20
+ * - Rendering and behavior of the modal component.
21
+ * - Functionality of the button to open and close the modal.
22
+ * - Integration with mocked GraphQL queries for testing Apollo Client.
23
+ *
24
+ * Purpose:
25
+ * These tests ensure that the CheckInWrapper component behaves as expected
26
+ * when opening and closing modals, and correctly integrates with its dependencies.
27
+ */
28
+
16
29
const link = new StaticMockLink ( checkInQueryMock , true ) ;
17
30
18
31
describe ( 'Testing CheckIn Wrapper' , ( ) => {
19
32
const props = {
20
33
eventId : 'event123' ,
21
34
} ;
22
35
23
- test ( 'The button to open and close the modal should work properly' , async ( ) => {
36
+ it ( 'The button to open and close the modal should work properly' , async ( ) => {
24
37
render (
25
38
< MockedProvider addTypename = { false } link = { link } >
26
39
< BrowserRouter >
You can’t perform that action at this time.
0 commit comments