UNPKG

@applicaster/zapp-react-native-ui-components

Version:

Applicaster Zapp React Native ui components for the Quick Brick App

29 lines (24 loc) 703 B
import React from "react"; import { render } from "@testing-library/react-native"; import { Runtime } from "../Runtime"; const RuntimeProps = (isRTL) => ({ config: { titleColor: "white", summaryColor: "white", backgroundColor: "black", backgroundImage: "https://example.com", isRTL, }, start_time: "10:10", end_time: "11:11", }); describe("<Runtime />", () => { it("RTL renders correctly", () => { const { toJSON } = render(<Runtime {...RuntimeProps(true)} />); expect(toJSON()).toMatchSnapshot(); }); it("LTR renders correctly", () => { const { toJSON } = render(<Runtime {...RuntimeProps(false)} />); expect(toJSON()).toMatchSnapshot(); }); });