import React from "react"; import renderer from "react-test-renderer"; import MenuItem from "../MenuItem"; import { Activity } from "../../../Icon/Icons"; describe("Snapshots", () => { it("renders correctly with empty props", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("renders correctly with custom class name", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("renders correctly with title and font icon", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("renders correctly with title and SVG icon", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("renders correctly when disabled", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("renders correctly when selected", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("renders correctly with a label", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); }); jest.useFakeTimers();