UNPKG

@kiwicom/orbit-components

Version:

<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"

18 lines (14 loc) 465 B
// @flow import * as React from "react"; import { shallow } from "enzyme"; import FormFeedback from "../index"; describe("FormFeedback", () => { const dataTest = "test"; const component = shallow(<FormFeedback dataTest={dataTest}>FormFeedback</FormFeedback>); it("should have data-test", () => { expect(component.render().prop("data-test")).toBe(dataTest); }); it("should match snapshot", () => { expect(component).toMatchSnapshot(); }); });