@muvehealth/fixins
Version:
Component library for Muvehealth
28 lines (24 loc) • 722 B
Flow
/* eslint-disable function-paren-newline, comma-dangle */
import React from 'react'
import Textarea from '../Textarea'
import ThemeWrapper from '../../theme/ThemeWrapper'
describe('Textarea', () => {
it('renders a Textarea Input', () => {
const tree = render(<Textarea />)
expect(tree).toMatchSnapshot()
})
it('renders a Textarea Input with no label', () => {
const tree = render(<Textarea noLabel />)
expect(tree).toMatchSnapshot()
})
it('renders a Textarea Input with a custom theme', () => {
const tree = render(
<ThemeWrapper
theme={{ colors: { inputGray: '#000000' } }}
>
<Textarea />
</ThemeWrapper>
)
expect(tree).toMatchSnapshot()
})
})