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.
34 lines • 1.08 kB
JavaScript
import React from "react";
import { Arrow } from ".";
import createSnapshot from "../../test/create-snapshot";
describe("<Arrow /> snapshot tests", function () {
it("renders <Arrow/> correctly with direction=right ", function () {
var snapshot = createSnapshot(React.createElement(Arrow, {
direction: "right"
}));
expect(snapshot).toMatchSnapshot();
});
it("renders <Arrow/> correctly with direction=down ", function () {
var snapshot = createSnapshot(React.createElement(Arrow, {
direction: "down"
}));
expect(snapshot).toMatchSnapshot();
});
it("renders <Arrow/> correctly with direction=left ", function () {
var snapshot = createSnapshot(React.createElement(Arrow, {
direction: "left"
}));
expect(snapshot).toMatchSnapshot();
});
it("render <Arrow /> correctly with theme", function () {
var theme = {
nav: {
fill: "pink"
}
};
var snapshot = createSnapshot(React.createElement(Arrow, {
direction: "left"
}), theme);
expect(snapshot).toMatchSnapshot();
});
});