import React from "react"; import { render } from "@testing-library/react-native"; import Divider from "./divider"; import { ThemeProvider } from "../../../theme/src/theme-context"; jest.useFakeTimers(); describe("Atoms/Divider", () => { it("passes the snapshot test in light mode", () => { const tree = render( ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test in dark mode", () => { const tree = render( ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test for different length modes", () => { const tree = render( ).toJSON(); expect(tree).toMatchSnapshot(); }); });