Skip to content

Commit a34dfe4

Browse files
committed
fmt
1 parent 6f98c77 commit a34dfe4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ describe("WorkspacePage", () => {
163163
name: "cancel action",
164164
})
165165

166-
await userEvent
167-
.setup()
168-
.click(cancelButton)
166+
await userEvent.setup().click(cancelButton)
169167

170168
expect(cancelWorkspaceMock).toBeCalled()
171169
})
@@ -185,9 +183,7 @@ describe("WorkspacePage", () => {
185183
await renderWorkspacePage()
186184
const buttonText = t("actionButton.update", { ns: "workspacePage" })
187185
const button = await screen.findByText(buttonText, { exact: true })
188-
await userEvent
189-
.setup()
190-
.click(button)
186+
await userEvent.setup().click(button)
191187

192188
// getTemplate is called twice: once when the machine starts, and once after the user requests to update
193189
expect(getTemplateMock).toBeCalledTimes(2)
@@ -209,9 +205,7 @@ describe("WorkspacePage", () => {
209205
await renderWorkspacePage()
210206
const buttonText = t("actionButton.update", { ns: "workspacePage" })
211207
const button = await screen.findByText(buttonText, { exact: true })
212-
await userEvent
213-
.setup()
214-
.click(button)
208+
await userEvent.setup().click(button)
215209

216210
await waitFor(() =>
217211
expect(api.startWorkspace).toBeCalledWith(

0 commit comments

Comments
 (0)