| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 13 |
| 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 EmailInput from './EmailInput.svelte'; |
||
| 4 | |||
| 5 | it('renders an email input.', () => { |
||
| 6 | const value = 'abc'; |
||
| 7 | const label = 'my email input'; |
||
| 8 | render(EmailInput, {value, label}); |
||
| 9 | |||
| 10 | expect( |
||
| 11 | screen.getByRole('textbox', {name: /my email input/i}) |
||
| 12 | ).toBeInTheDocument(); |
||
| 13 | }); |
||
| 14 |