Last active
January 16, 2019 01:02
-
-
Save Lukeghenco/661fc64a6b5fe5ec788b21a1def6be15 to your computer and use it in GitHub Desktop.
Enzyme/React-Testing-Libary Step: 9
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('has a disabled textarea if disabled prop is present', () => { | |
const { getByLabelText } = render(<TextAreaInput {…defaultProps} disabled />) | |
const textareaInput = getByLabelText(defaultProps.labelText) | |
expect(textareaInput.disabled).toEqual(true) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment