@muvehealth/fixins
Version:
Component library for Muvehealth
43 lines (38 loc) • 903 B
Flow
/* eslint-disable function-paren-newline, comma-dangle */
import React from 'react'
import renderWithTheme from '../../testHelper'
import Label from '../Label'
describe('Label', () => {
it('renders a Label', () => {
const tree = renderWithTheme(
<Label>
Label
</Label>
)
expect(tree).toMatchSnapshot()
})
it('renders a Label in all caps', () => {
const tree = renderWithTheme(
<Label textStyle="caps">
Label
</Label>
)
expect(tree).toMatchSnapshot()
})
it('renders a Label that is hidden', () => {
const tree = renderWithTheme(
<Label hidden>
Label
</Label>
)
expect(tree).toMatchSnapshot()
})
it('renders a Label with letterSpacing', () => {
const tree = renderWithTheme(
<Label letterSpacing="3px">
Label
</Label>
)
expect(tree).toMatchSnapshot()
})
})