import React from "react"; import renderer from "react-test-renderer"; import Checkbox from "../Checkbox"; describe("Checkbox renders correctly", () => { it("with props", () => { const tree = renderer .create() .toJSON(); expect(tree).toMatchSnapshot(); }); it("with empty props", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when checked", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when disabled", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when autoFocus", () => { 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 default checked", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("when interminate", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with ariaLabelledBy", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("without label", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); });