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