import React from "react"; import { render } from "@testing-library/react-native"; import List, { OrderedList, UnorderedList } from "./list"; import { ThemeProvider } from "../../../theme/src/theme-context"; import Text from "../text/text"; jest.useFakeTimers(); describe("Atoms/List", () => { it("passes the snapshot test for List", () => { const tree = render( Test Item 1 Test Item 2 Test Item 3 ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test for OrderedList", () => { const tree = render( Test Item 1 Test Item 2 Test Item 3 ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test for UnorderedList", () => { const tree = render( Test Item 1 Test Item 2 Test Item 3 ).toJSON(); expect(tree).toMatchSnapshot(); }); });