import React from "react"; import renderer from "react-test-renderer"; import RadioButton from "../RadioButton"; describe("RadioButton renders correctly", () => { it("with empty props", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with name", () => { 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("when default checked", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when checked", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when autoFocus", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when unchecked", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with text", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with componentClassName", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); });