UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

23 lines 811 B
import React from "react"; import { Checkbox } from "."; import createSnapshot from "../../test/create-snapshot"; describe("<Checkbox /> snapshot tests", function () { it("renders <Checkbox /> correctly with default props", function () { var snapshot = createSnapshot(React.createElement(Checkbox, null)); expect(snapshot).toMatchSnapshot(); }); it("renders <Checkbox /> correctly with checked prop", function () { var snapshot = createSnapshot(React.createElement(Checkbox, { checked: true })); expect(snapshot).toMatchSnapshot(); }); it("renders <Checkbox /> without overriding styles", function () { var snapshot = createSnapshot(React.createElement(Checkbox, { extend: { display: "none" } })); expect(snapshot).toMatchSnapshot(); }); });