import React from "react"; import renderer from "react-test-renderer"; import Search from "../LegacySearch"; describe("Search renders correctly", () => { it("without props", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with placeholder", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with value", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when disabled", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with wrapperClassName", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with className", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with id", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with validation", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with loading", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with underline type", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with icon", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with secondaryIconName", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); });