Skip to content

Commit

Permalink
fix test 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Quanmuito committed Jan 27, 2024
1 parent c8671ab commit cefa41b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/components/Inputs/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ test('Test render InputText', async () => {
});

test('Test render InputNumber', async () => {
render(<InputNumber id="test" options={ { value: 5, 'aria-label': 'Test input', onChange: () => {} } } />);
const input = await screen.findByRole('spinbutton ', { name: 'Test input' });
render(<InputNumber id="test" options={ { value: 5, onChange: () => {} } } />);
const input = await screen.findByRole('spinbutton');

expect(input).toBeInTheDocument();
expect(input).toHaveValue(5);
});

test('Test render InputDatetime', async () => {
render(<InputDatetime id="test" options={ { value: '2020-05-12T23:50:21.817', 'aria-label': 'Test input', onChange: () => {} } } />);
const input = await screen.findByRole('spinbutton ', { name: 'Test input' });
render(<InputDatetime id="test" options={ { value: '2020-05-12T23:50:21.817', onChange: () => {} } } />);
const input = await screen.findByRole('spinbutton');

expect(input).toBeInTheDocument();
expect(input).toHaveValue('2020-05-12T23:50:21.817');
Expand Down

0 comments on commit cefa41b

Please sign in to comment.