UNPKG

@navinc/base-react-components

Version:
13 lines (10 loc) 383 B
import React from 'react' import { renderWithContext, screen } from '../tests/with-app-context.js' import Icon from './icon.js' describe('Icon', () => { it('renders a svg if a proper name is supplied', async () => { renderWithContext(<Icon name="actions/close" />) const icon = await screen.findByTestId('icon:actions/close') expect(icon).toBeInTheDocument() }) })