import React from "react"; import { render } from "@testing-library/react-native"; import Grid from "./grid"; import { ThemeProvider } from "../../../theme/src/theme-context"; import Box from "../box/box"; import Text from "../text/text"; jest.useFakeTimers(); describe("Atoms/Grid", () => { it("passes the snapshot test with default props", () => { const tree = render( Test ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test with custom numCols", () => { const tree = render( Test Test Test ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test with custom spacing", () => { const tree = render( Test ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test with custom spacingX", () => { const tree = render( Test ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test with custom spacingY", () => { const tree = render( Test ).toJSON(); expect(tree).toMatchSnapshot(); }); });