@swrve/core
Version:
Core set of Swrve UI Components
16 lines (13 loc) • 434 B
JavaScript
import React from 'react'
import { render } from '@testing-library/react'
import Caption from '../caption'
describe('<Caption />', () => {
it('should render', () => {
const { container } = render(<Caption />)
expect(container).toMatchSnapshot()
})
it('should render children correctly', () => {
const { container } = render(<Caption>{"I'm caption text!"}</Caption>)
expect(container).toMatchSnapshot()
})
})