Skip to content

Commit

Permalink
[Rating]: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siarhei-epam committed Nov 14, 2024
1 parent df937f4 commit 18bce1c
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 333 deletions.
20 changes: 0 additions & 20 deletions loveship/components/inputs/__tests__/Rating.test.tsx

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ describe('Rating', () => {
expect(tree).toMatchSnapshot();
});

it('should be rendered correctly', async () => {
const tree = await renderSnapshotWithContextAsync(<Rating value={ null } onValueChange={ jest.fn } size={ 18 } step={ 1 } from={ 2 } to={ 4 } />);
it('should be rendered correctly with more props', async () => {
const tree = await renderSnapshotWithContextAsync(<Rating value={ null } onValueChange={ jest.fn } size={ 24 } step={ 1 } />);

expect(tree).toMatchSnapshot();
});
Expand Down
Loading

0 comments on commit 18bce1c

Please sign in to comment.