@@ -22,14 +22,14 @@ jest.mock("../../components/Modal", () => {
22
22
23
23
describe ( "StudentDropper" , ( ) => {
24
24
it ( "should render correctly without interaction" , ( ) => {
25
- const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" /> , {
25
+ const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" courseRestricted = { false } /> , {
26
26
wrapper : testQueryClientWrapper
27
27
} ) ;
28
28
expect ( component . asFragment ( ) ) . toMatchSnapshot ( ) ;
29
29
} ) ;
30
30
31
31
it ( "should render modal correctly after clicking x" , ( ) => {
32
- const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" /> , {
32
+ const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" courseRestricted = { false } /> , {
33
33
wrapper : testQueryClientWrapper
34
34
} ) ;
35
35
@@ -42,7 +42,7 @@ describe("StudentDropper", () => {
42
42
} ) ;
43
43
44
44
it ( "should close modal correctly" , ( ) => {
45
- const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" /> , {
45
+ const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" courseRestricted = { false } /> , {
46
46
wrapper : testQueryClientWrapper
47
47
} ) ;
48
48
@@ -72,7 +72,7 @@ describe("StudentDropper", () => {
72
72
return null as any ;
73
73
} ) ;
74
74
75
- const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" /> , {
75
+ const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" courseRestricted = { false } /> , {
76
76
wrapper : testQueryClientWrapper
77
77
} ) ;
78
78
@@ -129,7 +129,7 @@ describe("StudentDropper", () => {
129
129
return null as any ;
130
130
} ) ;
131
131
132
- const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" /> , {
132
+ const component = render ( < StudentDropper id = { 1 } sectionId = { 2 } name = "Test Student" courseRestricted = { false } /> , {
133
133
wrapper : testQueryClientWrapper
134
134
} ) ;
135
135
0 commit comments