Skip to content

Commit

Permalink
fix navigation-bar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mairisb committed Jan 22, 2024
1 parent 70c5296 commit 12d01a8
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ describe('NavigationBar', () => {
const rootStore = new RootStore();
rootStore.authStore.isAuthenticated = false;

renderWithProviders(<NavigationBar />, { rootStore });
const rootStore = new RootStore();
rootStore.authStore.isAuthenticated = false;

renderWithProviders(<NavigationBar />, { rootStore });

expect(screen.queryByTestId('login-btn')).toBeInTheDocument();
Expand All @@ -25,11 +21,6 @@ describe('NavigationBar', () => {
rootStore.authStore.isAuthenticated = true;
rootStore.authStore.user = { username: 'johnsmith' } as UserDto;

renderWithProviders(<NavigationBar />, { rootStore });
const rootStore = new RootStore();
rootStore.authStore.isAuthenticated = true;
rootStore.authStore.user = { username: 'johnsmith' } as UserDto;

renderWithProviders(<NavigationBar />, { rootStore });

expect(screen.queryByTestId('login-btn')).toBeNull();
Expand Down

0 comments on commit 12d01a8

Please sign in to comment.