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.
21 lines (19 loc) • 668 B
JavaScript
import React from "react";
import { Checkbox } from ".";
import createSnapshot from "../../test/create-snapshot";
var onChange = function onChange() {};
describe("<Checkbox /> snapshot tests", function () {
it("renders <Checkbox /> correctly with default props", function () {
var snapshot = createSnapshot(React.createElement(Checkbox, {
onChange: onChange
}));
expect(snapshot).toMatchSnapshot();
});
it("renders <Checkbox /> correctly with checked prop", function () {
var snapshot = createSnapshot(React.createElement(Checkbox, {
checked: true,
onChange: onChange
}));
expect(snapshot).toMatchSnapshot();
});
});