From d24595b78fdbae17160abdfc235199c0f407574a Mon Sep 17 00:00:00 2001 From: Said Shah Date: Wed, 28 Oct 2020 14:10:09 -0400 Subject: [PATCH] Added and updated tests for text area --- src/atoms/forms/text-area.test.tsx | 36 +++++++++++++++++++++++++++++- src/atoms/forms/text-area.tsx | 2 +- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/atoms/forms/text-area.test.tsx b/src/atoms/forms/text-area.test.tsx index 389ba77..cd63cf6 100644 --- a/src/atoms/forms/text-area.test.tsx +++ b/src/atoms/forms/text-area.test.tsx @@ -1,5 +1,39 @@ import React from "react"; +import { TextArea } from "./text-area"; +import uuid from "uuid"; +import { render, fireEvent } from "@testing-library/react"; +import faker from "faker"; describe("TextArea", () => { - test.skip("TODO - https://github.com/AndcultureCode/AndcultureCode.JavaScript.React.Components/issues/10", () => {}); + test("when default props, renders text area", () => { + // Arrange + const expected = faker.random.word(); + + // Act + const { getByTestId } = render( +