UNPKG

@navinc/base-react-components

Version:
15 lines (11 loc) 378 B
import { renderWithContext } from './tests/with-app-context.js' import { screen } from '@testing-library/react' import { Text } from './text.js' describe('Base Components: Text', () => { describe('render', () => { it('renders Text', () => { renderWithContext(<Text>test text</Text>) expect(screen.getByText('test text').tagName).toBe('SPAN') }) }) })