@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"
23 lines (18 loc) • 487 B
JavaScript
// @flow
import * as React from "react";
import { shallow } from "enzyme";
import FormLabel from "../index";
describe("FormLabel", () => {
const dataTest = "test";
const component = shallow(
<FormLabel filled={false} dataTest={dataTest}>
FormLabel
</FormLabel>,
);
it("should have data-test", () => {
expect(component.render().prop("data-test")).toBe(dataTest);
});
it("should match snapshot", () => {
expect(component).toMatchSnapshot();
});
});