Skip to content

Instantly share code, notes, and snippets.

@Lukeghenco
Last active January 16, 2019 01:02
Show Gist options
  • Save Lukeghenco/db487580c646d91f4dac0b83531aa8cb to your computer and use it in GitHub Desktop.
Save Lukeghenco/db487580c646d91f4dac0b83531aa8cb to your computer and use it in GitHub Desktop.
Enzyme/React-Testing-Libary Step: 10
it('does not have a disabled textarea input by default', () => {
const { getByLabelText } = render(<TextAreaInput {…defaultProps} />)
const textareaInput = getByLabelText(defaultProps.labelText)
expect(textareaInput.disabled).toEqual(false)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment