diff --git a/src/atoms/typography/paragraph.test.tsx b/src/atoms/typography/paragraph.test.tsx index d72c70b..afa0be3 100644 --- a/src/atoms/typography/paragraph.test.tsx +++ b/src/atoms/typography/paragraph.test.tsx @@ -1,5 +1,32 @@ import React from "react"; +import { render } from "@testing-library/react"; +import faker from "faker"; +import { Paragraph } from "./paragraph"; describe("Paragraph", () => { - test.skip("TODO - https://github.com/AndcultureCode/AndcultureCode.JavaScript.React.Components/issues/15", () => {}); + test("when default props, renders paragraph with text", () => { + // Act + const expected = faker.random.words(); + + // Arrange + const { getByText } = render({expected}); + + // Assert + expect(getByText(expected)).not.toBeNil(); + }); + + test("when given cssClassName prop, renders paragraph with given class name", () => { + // Act + const expected = faker.random.words(); + const testClassName = "testClassName"; + + // Arrange + const { container } = render( + {expected} + ); + const result = container.querySelector("." + testClassName); + + // Assert + expect(result).not.toBeNil(); + }); });