Skip to content

Commit 4c61c01

Browse files
committed
fix typo
1 parent 723ccd9 commit 4c61c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/pages/WorkspacePage/WorkspacePage.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ describe("WorkspacePage", () => {
307307
});
308308
});
309309

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 () => {
311311
localStorage.removeItem(`${MockUser.id}_ignoredWarnings`);
312312
jest.spyOn(api, "getWorkspaceParameters").mockResolvedValue({
313313
templateVersionRichParameters: [
@@ -321,7 +321,7 @@ describe("WorkspacePage", () => {
321321
],
322322
buildParameters: [{ name: "rebuild", value: "false" }],
323323
});
324-
const httpartWorkspaceSpy = jest.spyOn(api, "restartWorkspace");
324+
const restartWorkspaceSpy = jest.spyOn(api, "restartWorkspace");
325325
const user = userEvent.setup();
326326
await renderWorkspacePage(MockWorkspace);
327327
await user.click(screen.getByTestId("build-parameters-button"));
@@ -336,7 +336,7 @@ describe("WorkspacePage", () => {
336336
await user.click(screen.getByTestId("build-parameters-submit"));
337337
await user.click(screen.getByTestId("confirm-button"));
338338
await waitFor(() => {
339-
expect(httpartWorkspaceSpy).toBeCalledWith({
339+
expect(restartWorkspaceSpy).toBeCalledWith({
340340
workspace: MockWorkspace,
341341
buildParameters: [{ name: "rebuild", value: "true" }],
342342
});

0 commit comments

Comments
 (0)