@@ -17,7 +17,7 @@ import { UpdateProjectModal } from "./UpdateProjectModal";
1717
1818const createProject = (
1919 id : string ,
20- overrides ?: Partial < TProject >
20+ overrides ?: Partial < TProject > ,
2121) : TProject => ( {
2222 id,
2323 name : `Project ${ id } ` ,
@@ -67,7 +67,7 @@ describe("UpdateProjectModal", () => {
6767 render (
6868 < Provider >
6969 < UpdateProjectModal onSuccess = { vi . fn ( ) } />
70- </ Provider >
70+ </ Provider > ,
7171 ) ;
7272
7373 expect ( screen . queryByTestId ( "update-project-form" ) ) . toBeNull ( ) ;
@@ -81,7 +81,7 @@ describe("UpdateProjectModal", () => {
8181 < OpenModalWithProjectOnMount project = { project } >
8282 < UpdateProjectModal onSuccess = { vi . fn ( ) } />
8383 </ OpenModalWithProjectOnMount >
84- </ Provider >
84+ </ Provider > ,
8585 ) ;
8686
8787 await waitFor ( ( ) => {
@@ -103,12 +103,12 @@ describe("UpdateProjectModal", () => {
103103 </ OpenModalWithProjectOnMount >
104104 < ModalStateProbe />
105105 < ProjectProbe />
106- </ Provider >
106+ </ Provider > ,
107107 ) ;
108108
109109 const form = await screen . findByTestId ( "update-project-form" ) ;
110110 const nameField = within (
111- screen . getByTestId ( "update-project-name" )
111+ screen . getByTestId ( "update-project-name" ) ,
112112 ) . getByRole ( "textbox" ) ;
113113
114114 fireEvent . change ( nameField , { target : { value : " Updated Name " } } ) ;
@@ -118,7 +118,6 @@ describe("UpdateProjectModal", () => {
118118 expect ( updateProjectMock ) . toHaveBeenCalledWith ( {
119119 id : initialProject . id ,
120120 name : "Updated Name" ,
121- isGeneral : false ,
122121 } ) ;
123122 } ) ;
124123
@@ -129,10 +128,10 @@ describe("UpdateProjectModal", () => {
129128 await waitFor ( ( ) => {
130129 expect ( screen . queryByTestId ( "update-project-form" ) ) . toBeNull ( ) ;
131130 expect (
132- screen . getByTestId ( "update-project-modal-state" )
131+ screen . getByTestId ( "update-project-modal-state" ) ,
133132 ) . toHaveTextContent ( "false" ) ;
134133 expect (
135- screen . getByTestId ( "update-project-modal-project" )
134+ screen . getByTestId ( "update-project-modal-project" ) ,
136135 ) . toHaveTextContent ( "none" ) ;
137136 } ) ;
138137 } ) ;
@@ -148,12 +147,12 @@ describe("UpdateProjectModal", () => {
148147 < OpenModalWithProjectOnMount project = { project } >
149148 < UpdateProjectModal onSuccess = { onSuccess } />
150149 </ OpenModalWithProjectOnMount >
151- </ Provider >
150+ </ Provider > ,
152151 ) ;
153152
154153 const form = await screen . findByTestId ( "update-project-form" ) ;
155154 const nameField = within (
156- screen . getByTestId ( "update-project-name" )
155+ screen . getByTestId ( "update-project-name" ) ,
157156 ) . getByRole ( "textbox" ) ;
158157
159158 fireEvent . change ( nameField , { target : { value : "New Name" } } ) ;
@@ -163,13 +162,12 @@ describe("UpdateProjectModal", () => {
163162 expect ( updateProjectMock ) . toHaveBeenCalledWith ( {
164163 id : project . id ,
165164 name : "New Name" ,
166- isGeneral : false ,
167165 } ) ;
168166 } ) ;
169167
170168 expect ( onSuccess ) . not . toHaveBeenCalled ( ) ;
171169 expect (
172- await screen . findByTestId ( "update-project-form" )
170+ await screen . findByTestId ( "update-project-form" ) ,
173171 ) . toBeInTheDocument ( ) ;
174172 } ) ;
175173
@@ -181,7 +179,7 @@ describe("UpdateProjectModal", () => {
181179 < OpenModalWithProjectOnMount project = { project } >
182180 < UpdateProjectModal onSuccess = { vi . fn ( ) } />
183181 </ OpenModalWithProjectOnMount >
184- </ Provider >
182+ </ Provider > ,
185183 ) ;
186184
187185 await waitFor ( ( ) => {
0 commit comments