Skip to content

Instantly share code, notes, and snippets.

@Lukeghenco
Last active January 16, 2019 01:02
Show Gist options
  • Save Lukeghenco/661fc64a6b5fe5ec788b21a1def6be15 to your computer and use it in GitHub Desktop.
Save Lukeghenco/661fc64a6b5fe5ec788b21a1def6be15 to your computer and use it in GitHub Desktop.
Enzyme/React-Testing-Libary Step: 9
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