diff --git a/packages/auth/src/__tests__/useAuthorization.test.tsx b/packages/auth/src/__tests__/useAuthorization.test.tsx
index 7eac52b93..6a4120a1f 100644
--- a/packages/auth/src/__tests__/useAuthorization.test.tsx
+++ b/packages/auth/src/__tests__/useAuthorization.test.tsx
@@ -1,6 +1,8 @@
import { test, expect, vi } from "vitest"
import { render, screen } from "@testing-library/react"
import { useAuthorization } from "../useAuthorization"
+import { render, screen } from "@testing-library/react"
+import { useAuthorization } from "../useAuthorization"
const mockUseLogto = vi.hoisted(() => vi.fn())
@@ -30,8 +32,8 @@ test("A user without a matching role is unauthorized", async () => {
isAuthenticated: true,
})
- const { getByText } = render()
- expect(getByText("LOADING")).toBeInTheDocument()
+ render()
+ expect(screen.getByText("LOADING")).toBeInTheDocument()
expect(await screen.findByText("UNAUTHORIZED")).toBeInTheDocument()
})
@@ -41,7 +43,7 @@ test("A user with a matching role is authorized", async () => {
isAuthenticated: true,
})
- const { getByText } = render()
- expect(getByText("LOADING")).toBeInTheDocument()
+ render()
+ expect(screen.getByText("LOADING")).toBeInTheDocument()
expect(await screen.findByText("AUTHORIZED")).toBeInTheDocument()
})