import React from 'react';
import { render } from '@testing-library/react';
import axe from '../../../../axe-helper';
import DropdownFiltered from './DropdownFiltered';
const items = [{ value: 'apple' }, { value: 'pear' }, { value: 'orange' }, { value: 'grape' }, { value: 'banana' }];
describe('', () => {
it('renders the Dropdown with options with no a11y violations', async () => {
const { container } = render();
const results = await axe(container.innerHTML);
expect(container.firstChild).toMatchSnapshot();
expect(results).toHaveNoViolations();
});
it('renders the DropdownFiltered with options and a default selected value', () => {
const { container } = render(
,
);
expect(container.firstChild).toMatchSnapshot();
});
});