@swrve/core
Version:
Core set of Swrve UI Components
16 lines (14 loc) • 428 B
JavaScript
import React from 'react'
import { render } from '@testing-library/react'
import IconLink from '../icon-link'
import { MemoryRouter } from 'react-router'
describe('<IconLink/>', () => {
it('should render', () => {
const { container } = render(
<MemoryRouter initialEntries={['/']}>
<IconLink iconName="icon-paper-plane" link="" />
</MemoryRouter>
)
expect(container).toMatchSnapshot()
})
})