File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import { TextInputIcon } from "./text-input-icon" ;
3+ import faker from "faker" ;
4+ import { render , fireEvent } from "@testing-library/react" ;
5+ import uuid from "uuid" ;
6+ import { Icons } from "../constants/icons" ;
27
38describe ( "TextInputIcon" , ( ) => {
4- test . skip ( "TODO - https://github.com/AndcultureCode/AndcultureCode.JavaScript.React.Components/issues/9" , ( ) => { } ) ;
9+ test ( "when default props, renders icon with input" , ( ) => {
10+ // Arrange
11+ const dataTestId = "dataTestId" ;
12+ const icon = Icons . Checkmark ;
13+
14+ // Act
15+ const { getByTestId } = render (
16+ < TextInputIcon
17+ icon = { icon }
18+ id = { uuid ( ) }
19+ onChange = { ( ) => { } }
20+ testId = { dataTestId }
21+ />
22+ ) ;
23+
24+ // Assert
25+ expect ( getByTestId ( dataTestId ) ) . not . toBeNil ( ) ;
26+ } ) ;
527} ) ;
You can’t perform that action at this time.
0 commit comments