mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor: rm eslint-disable CreateWorkspacePage (#4865)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/no-floating-promises -- TODO figure out why this is*/
|
||||
import { fireEvent, screen, waitFor } from "@testing-library/react"
|
||||
import userEvent from "@testing-library/user-event"
|
||||
import * as API from "api/api"
|
||||
@@ -49,7 +48,7 @@ describe("CreateWorkspacePage", () => {
|
||||
})
|
||||
|
||||
const submitButton = screen.getByText(createWorkspaceText)
|
||||
userEvent.click(submitButton)
|
||||
await userEvent.click(submitButton)
|
||||
|
||||
await waitFor(() =>
|
||||
expect(API.createWorkspace).toBeCalledWith(
|
||||
@@ -62,4 +61,3 @@ describe("CreateWorkspacePage", () => {
|
||||
)
|
||||
})
|
||||
})
|
||||
/* eslint-enable @typescript-eslint/no-floating-promises -- TODO figure out why this is*/
|
||||
|
||||
Reference in New Issue
Block a user