import React from "react"; import renderer from "react-test-renderer"; import Counter from "../Counter"; describe("Counter renders correctly", () => { it("with count below the limit", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with count above limit", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with the prefix", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with negative color", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with line kind", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with count above limit", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with small size", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with ariaLabeledBy", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with className", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); it("with counterClassName", () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); });