mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-06 20:11:18 +01:00
20 lines
387 B
TypeScript
20 lines
387 B
TypeScript
|
import React from "react";
|
||
|
import renderer from "react-test-renderer";
|
||
|
|
||
|
import { Icon } from "@/components/Icon";
|
||
|
|
||
|
describe("Icon", () => {
|
||
|
const props = {
|
||
|
name: "test",
|
||
|
icon: {
|
||
|
viewBox: "0 0 0 0",
|
||
|
path: "",
|
||
|
},
|
||
|
};
|
||
|
|
||
|
it("renders correctly", () => {
|
||
|
const tree = renderer.create(<Icon {...props} />).toJSON();
|
||
|
expect(tree).toMatchSnapshot();
|
||
|
});
|
||
|
});
|