Skip to content

Instantly share code, notes, and snippets.

@stelmakh
Created December 30, 2018 09:20
Show Gist options
  • Select an option

  • Save stelmakh/1518aa32d6559cc84220c4f89e53c40c to your computer and use it in GitHub Desktop.

Select an option

Save stelmakh/1518aa32d6559cc84220c4f89e53c40c to your computer and use it in GitHub Desktop.
it('has an error state', () => {
const component = shallow(
<Input
error
/>
);
expect(component.hasClass('error')).toBe(true)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment