Skip to content

Commit

Permalink
Update UserSidebar.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ARYANSHAH1567 authored Nov 1, 2024
1 parent 5600c98 commit 74aed2f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/UserPortal/UserSidebar/UserSidebar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,14 @@ describe('Testing UserSidebar Component [User Portal]', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

// Check for `hideElemByDefault` class when hideDrawer is null
expect(screen.getByTestId('leftDrawerContainer')).toHaveClass(
styles.hideElemByDefault
styles.hideElemByDefault,
);

// Rerender with hideDrawer set to true and verify `inactiveDrawer`
rerender(
<MockedProvider addTypename={false}>
Expand All @@ -517,12 +517,12 @@ describe('Testing UserSidebar Component [User Portal]', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
expect(screen.getByTestId('leftDrawerContainer')).toHaveClass(
styles.inactiveDrawer
styles.inactiveDrawer,
);

// Rerender with hideDrawer set to false and verify `activeDrawer`
rerender(
<MockedProvider addTypename={false}>
Expand All @@ -533,10 +533,10 @@ describe('Testing UserSidebar Component [User Portal]', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
expect(screen.getByTestId('leftDrawerContainer')).toHaveClass(
styles.activeDrawer
styles.activeDrawer,
);
});
});
Expand Down

0 comments on commit 74aed2f

Please sign in to comment.