| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 11 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import '@testing-library/jest-dom/extend-expect'; |
||
| 2 | import { screen, render } from '@testing-library/svelte'; |
||
| 3 | import SelectInput from './SelectInput.svelte'; |
||
| 4 | |||
| 5 | it('renders a select', () => { |
||
| 6 | const value = 'abc'; |
||
| 7 | const label = 'label'; |
||
| 8 | render(SelectInput, { value, label }); |
||
| 9 | |||
| 10 | expect(screen.getByRole('combobox')).toBeInTheDocument(); |
||
| 11 | }); |
||
| 12 |