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