Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 committed Jan 3, 2025
1 parent 777f131 commit 49c3bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/Scenes/Activity/ActivityItem.tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ describe("ActivityItem", () => {
fireEvent.press(await screen.findByText("Notification Headline"))

await waitFor(() =>
expect(navigate).toHaveBeenCalledWith('/notification/<mock-value-for-field-"internalID">')
expect(navigate).toHaveBeenCalledWith(
'/notification/<mock-value-for-field-"internalID">',
undefined
)
)
})

Expand Down
2 changes: 1 addition & 1 deletion src/app/Scenes/HomeView/Components/ActivityRail.tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe("ActivityRail", () => {

fireEvent.press(screen.getByText(/mock-value-for-field-"headline"/))

expect(navigate).toHaveBeenCalledWith("/notification/id-1")
expect(navigate).toHaveBeenCalledWith("/notification/id-1", undefined)

expect(mockTrackEvent).toHaveBeenCalledWith({
action: "tappedActivityGroup",
Expand Down

0 comments on commit 49c3bac

Please sign in to comment.