Last active
January 16, 2019 01:02
-
-
Save Lukeghenco/868801c957415d36441c3766edab7fd1 to your computer and use it in GitHub Desktop.
Enzyme/React-Testing-Libary Step: 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('renders a placeholder correctly', () => { | |
const placeholderText = 'I am placeholder text' | |
const { getByLabelText } = render(<TextAreaInput {…defaultProps} placeholder={placeholderText} />) | |
const textareaInput = getByLabelText(defaultProps.labelText) | |
expect(textareaInput.placeholder).toEqual(placeholderText) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment