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.

80 lines 2.6 kB
import React from "react"; import { Icon } from "."; import createSnapshot from "../../test/create-snapshot"; describe("<Icon /> snapshot tests", function () { it("renders correctly with type=account", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "account" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=account size=s", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "account", size: "s" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=account size=m", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "account", size: "m" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=account size=l", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "account", size: "l" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=email", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "email" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=search", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "search" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=facebook", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "facebook" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=twitter", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "twitter" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=youtube", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "youtube" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=linkedin", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "linkedin" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=instagram", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "instagram" })); expect(snapshot).toMatchSnapshot(); }); it("renders correctly with type=globe", function () { var snapshot = createSnapshot(React.createElement(Icon, { type: "globe" })); expect(snapshot).toMatchSnapshot(); }); });