Skip to content

Commit

Permalink
Remove unused imports and variables from header.spec.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ameliav committed Mar 27, 2024
1 parent 65e3e86 commit 4e6cf87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/__tests__/header.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { render, fireEvent, testUser, testOrganization } from 'test-utils';
import { render, testUser, testOrganization } from 'test-utils';
import { Header } from '../Header';
import { waitFor } from '@testing-library/react';

jest.mock('@elastic/react-search-ui', () => ({
withSearch: () => (comp: any) => comp
Expand Down Expand Up @@ -46,7 +45,7 @@ describe('Header component', () => {
});

it('shows correct links for ORG_ADMIN', () => {
const { getByText, queryByText } = render(<Header />, {
const { getByText } = render(<Header />, {
authContext: {
user: { ...testUser, userType: 'standard', isRegistered: true },
currentOrganization: { ...testOrganization }
Expand Down

0 comments on commit 4e6cf87

Please sign in to comment.