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 MoneyInput from './MoneyInput.svelte'; |
||
4 | |||
5 | it('renders a money input.', () => { |
||
6 | const value = 'abc'; |
||
7 | const label = 'my money input'; |
||
8 | render(MoneyInput, {value, label}); |
||
9 | |||
10 | expect( |
||
11 | screen.getByRole('spinbutton', {name: /my money input/i}) |
||
12 | ).toBeInTheDocument(); |
||
13 | }); |
||
14 |