@applicaster/zapp-react-native-ui-components
Version:
Applicaster Zapp React Native ui components for the Quick Brick App
25 lines (20 loc) • 552 B
JavaScript
import React from "react";
import { shallow } from "enzyme";
import { shallowToJson } from "enzyme-to-json";
import { Summary } from "../Summary";
const summaryProps = {
config: {
titleColor: "white",
summaryColor: "white",
backgroundColor: "black",
backgroundImage: "https://example.com",
isRTL: true,
},
summary: "Summary Text",
};
describe("<Summary />", () => {
const wrapper = shallow(<Summary {...summaryProps} />);
it("renders correctly", () => {
expect(shallowToJson(wrapper)).toMatchSnapshot();
});
});