@applicaster/zapp-react-native-ui-components
Version:
Applicaster Zapp React Native ui components for the Quick Brick App
23 lines (19 loc) • 515 B
JavaScript
import React from "react";
import { render } from "@testing-library/react-native";
import { Summary } from "../Summary";
const summaryProps = {
config: {
titleColor: "white",
summaryColor: "white",
backgroundColor: "black",
backgroundImage: "https://example.com",
isRTL: true,
},
summary: "Summary Text",
};
describe("<Summary />", () => {
it("renders correctly", () => {
const { toJSON } = render(<Summary {...summaryProps} />);
expect(toJSON()).toMatchSnapshot();
});
});