@@ -307,7 +307,7 @@ describe("WorkspacePage", () => {
307
307
} ) ;
308
308
} ) ;
309
309
310
- it ( "httpart the workspace with one time parameters when having the confirmation dialog" , async ( ) => {
310
+ it ( "restart the workspace with one time parameters when having the confirmation dialog" , async ( ) => {
311
311
localStorage . removeItem ( `${ MockUser . id } _ignoredWarnings` ) ;
312
312
jest . spyOn ( api , "getWorkspaceParameters" ) . mockResolvedValue ( {
313
313
templateVersionRichParameters : [
@@ -321,7 +321,7 @@ describe("WorkspacePage", () => {
321
321
] ,
322
322
buildParameters : [ { name : "rebuild" , value : "false" } ] ,
323
323
} ) ;
324
- const httpartWorkspaceSpy = jest . spyOn ( api , "restartWorkspace" ) ;
324
+ const restartWorkspaceSpy = jest . spyOn ( api , "restartWorkspace" ) ;
325
325
const user = userEvent . setup ( ) ;
326
326
await renderWorkspacePage ( MockWorkspace ) ;
327
327
await user . click ( screen . getByTestId ( "build-parameters-button" ) ) ;
@@ -336,7 +336,7 @@ describe("WorkspacePage", () => {
336
336
await user . click ( screen . getByTestId ( "build-parameters-submit" ) ) ;
337
337
await user . click ( screen . getByTestId ( "confirm-button" ) ) ;
338
338
await waitFor ( ( ) => {
339
- expect ( httpartWorkspaceSpy ) . toBeCalledWith ( {
339
+ expect ( restartWorkspaceSpy ) . toBeCalledWith ( {
340
340
workspace : MockWorkspace ,
341
341
buildParameters : [ { name : "rebuild" , value : "true" } ] ,
342
342
} ) ;
0 commit comments