Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarMichalkiewicz committed Oct 20, 2023
1 parent 88eb45d commit 859cf1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/app/src/settings/components/about/about.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ test("Opens update modal properly when app update is not available", async () =>
test("Calls AppUpdateAvailableCheck when clicked", async () => {
jest.spyOn(flags, "get").mockReturnValueOnce(true)
const onAppUpdateAvailableCheck = jest.fn()
const { getByTestId } = renderer({ onAppUpdateAvailableCheck })
const { getByTestId } = renderer({
onAppUpdateAvailableCheck,
appUpdateAvailable: false,
})
const button = getByTestId(AboutTestIds.UpdateButton)
await waitFor(() => {
expect(button).toBeEnabled()
Expand Down

0 comments on commit 859cf1f

Please sign in to comment.