refactor: rm eslint-disable CreateWorkspacePage (#4865)

This commit is contained in:
Joe Previte
2022-11-02 22:06:22 -03:00
committed by GitHub
parent 3fc3b9f89f
commit 6bfdccda2f
@@ -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*/