Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: clean up UsersPage.test.tsx
  • Loading branch information
jsjoeio committed Sep 29, 2022
commit 27be8c2feb83fb17f55ee14ca8e296c26d34139a
4 changes: 1 addition & 3 deletions site/src/pages/UsersPage/UsersPage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-floating-promises */
import { fireEvent, screen, waitFor, within } from "@testing-library/react"
import userEvent from "@testing-library/user-event"
import { i18n } from "i18n"
Expand Down Expand Up @@ -474,8 +473,7 @@ describe("UsersPage", () => {
}),
)

// eslint-disable-next-line @typescript-eslint/no-empty-function
await updateUserRole(() => {}, MockAuditorRole)
await updateUserRole(() => null, MockAuditorRole)

// Check if the error message is displayed
const errorMessage = await screen.findByText("message from the backend")
Expand Down