Skip to content

Commit

Permalink
test: Improving the tests on the Loader Component
Browse files Browse the repository at this point in the history
- Added a new aspect in the test-case1

Signed-off-by: Akhilender <[email protected]>
  • Loading branch information
akhilender-bongirwar committed Nov 11, 2023
1 parent 9c7c6fb commit 69ebdd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Loader/Loader.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ describe('Testing Loader component', () => {
test('Component should be rendered properly', () => {
render(<Loader />);

expect(screen.getByTestId('spinner-wrapper')).toBeInTheDocument();
const spinnerWrapper = screen.getByTestId('spinner-wrapper');
expect(spinnerWrapper).toBeInTheDocument();
expect(screen.getByTestId('spinner')).toBeInTheDocument();
expect(spinnerWrapper).toHaveClass('_spinner_wrapper_1vy2z_1');
});

test('Component should render on custom sizes', () => {
Expand Down

0 comments on commit 69ebdd1

Please sign in to comment.