import React from 'react'; import { screen, render } from '@testing-library/react'; import { AutocompleteNoOptions } from './'; describe('AutocompleteNoOptions component', () => { describe('given default props', () => { it('renders the component with the options', () => { render(
There are no options
, ); expect(screen.getByText('There are no options')).toBeVisible(); }); it('renders the component with a text option', () => { render( There are really no options , ); expect(screen.getByText('There are really no options')).toBeVisible(); }); }); });