Skip to content

Commit e37ef3a

Browse files
committed
fix: clean up UsersPage.test.tsx
1 parent ffd7a91 commit e37ef3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

site/src/pages/UsersPage/UsersPage.test.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-floating-promises */
21
import { fireEvent, screen, waitFor, within } from "@testing-library/react"
32
import userEvent from "@testing-library/user-event"
43
import { i18n } from "i18n"
@@ -474,8 +473,7 @@ describe("UsersPage", () => {
474473
}),
475474
)
476475

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

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

0 commit comments

Comments
 (0)