Skip to content

Commit

Permalink
Navbar Test and UserProfile test
Browse files Browse the repository at this point in the history
  • Loading branch information
uo287841 committed Apr 21, 2024
1 parent cbf6b7f commit 3093b89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/Navbar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Navbar', () => {
// Reset mock function calls before each test
jest.clearAllMocks();
});

it('renders authenticated user links and logout button', () => {
useIsAuthenticated.mockReturnValue(() => true);
const { getByText } = render(
Expand Down Expand Up @@ -43,4 +43,5 @@ describe('Navbar', () => {
expect(getByText('Rankings')).toBeInTheDocument();
expect(getByText('Sign in')).toBeInTheDocument();
});

});

0 comments on commit 3093b89

Please sign in to comment.