import React from "react"; import renderer from "react-test-renderer"; import Text from "../Text"; describe("Text renders correctly", () => { it("with empty props", () => { const tree = renderer.create(text).toJSON(); expect(tree).toMatchSnapshot(); }); it("with type", () => { const tree = renderer.create(text).toJSON(); expect(tree).toMatchSnapshot(); }); it("with weight", () => { const tree = renderer.create(text).toJSON(); expect(tree).toMatchSnapshot(); }); it("with color", () => { const tree = renderer.create(text).toJSON(); expect(tree).toMatchSnapshot(); }); it("with element", () => { const tree = renderer.create(text).toJSON(); expect(tree).toMatchSnapshot(); }); it("with align", () => { const tree = renderer.create(text).toJSON(); expect(tree).toMatchSnapshot(); }); it("with element as children", () => { const tree = renderer .create(
text
) .toJSON(); expect(tree).toMatchSnapshot(); }); });