From 9f86cbb693c6a7b1407428ba373ba53c9f6f1fa6 Mon Sep 17 00:00:00 2001 From: Ole Date: Mon, 14 Oct 2024 12:05:18 +0200 Subject: [PATCH] fix test --- src/app/Components/Swipeable/Swipeable.tests.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/Components/Swipeable/Swipeable.tests.tsx b/src/app/Components/Swipeable/Swipeable.tests.tsx index aef1785f41e..9fec5520639 100644 --- a/src/app/Components/Swipeable/Swipeable.tests.tsx +++ b/src/app/Components/Swipeable/Swipeable.tests.tsx @@ -1,5 +1,5 @@ import { Text } from "@artsy/palette-mobile" -import { screen, fireEvent } from "@testing-library/react-native" +import { fireEvent, screen } from "@testing-library/react-native" import { Swipeable } from "app/Components/Swipeable/Swipeable" import { renderWithWrappers } from "app/utils/tests/renderWithWrappers" @@ -7,13 +7,17 @@ describe("Swipeable Component", () => { const mockAction = jest.fn() it("should render without crashing", () => { - renderWithWrappers() + renderWithWrappers( + + ) expect(screen.getByTestId("swipeable-component")).toBeOnTheScreen() }) it("should call the action when the action component is pressed", () => { - renderWithWrappers() + renderWithWrappers( + + ) fireEvent.press(screen.getByText("Swipe Me"))