Skip to content

Commit

Permalink
fix: lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kiram15 committed Sep 11, 2024
1 parent dca77c7 commit c754070
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/components/search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
useCanOnlyViewHighlights,
useDefaultSearchFilters,
useEnterpriseCustomer,
useEnterpriseFeatures,
useEnterpriseOffers,
useIsAssignmentsOnlyLearner,
useSubscriptions,
Expand Down Expand Up @@ -54,7 +53,6 @@ function useSearchPathwayModal() {
const Search = () => {
const config = getConfig();
const { data: enterpriseCustomer } = useEnterpriseCustomer();
const { data: enterpriseFeatures } = useEnterpriseFeatures();
const intl = useIntl();
const navigate = useNavigate();

Expand Down
3 changes: 1 addition & 2 deletions src/components/search/tests/Search.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '../../skills-quiz/__mocks__/react-instantsearch-dom';
import { queryClient, renderWithRouter } from '../../../utils/tests';
import '@testing-library/jest-dom';
import Search from '../Search';
import { useDefaultSearchFilters, useEnterpriseFeatures, useEnterpriseCustomer } from '../../app/data';
import { useDefaultSearchFilters, useEnterpriseCustomer } from '../../app/data';
import { useAlgoliaSearch } from '../../../utils/hooks';
import { enterpriseCustomerFactory } from '../../app/data/services/data/__factories__';
import { features } from '../../../config';
Expand All @@ -31,7 +31,6 @@ jest.mock('../../app/data', () => ({
useContentHighlightsConfiguration: jest.fn(() => ({ data: {} })),
useCanOnlyViewHighlights: jest.fn(() => ({ data: false })),
useIsAssignmentsOnlyLearner: jest.fn().mockReturnValue(false),
useEnterpriseFeatures: jest.fn(),
useDefaultSearchFilters: jest.fn(),
}));
jest.mock('../../../utils/hooks', () => ({
Expand Down
5 changes: 2 additions & 3 deletions src/components/search/tests/SearchSections.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import { queryClient, renderWithRouter } from '../../../utils/tests';
import '@testing-library/jest-dom';
import SearchProgram from '../SearchProgram';
import SearchPathway from '../SearchPathway';
import Search, { sendPushEvent } from '../Search';
import { EVENTS, pushEvent } from '../../../utils/optimizely';
import { useDefaultSearchFilters, useEnterpriseFeatures, useEnterpriseCustomer } from '../../app/data';
import Search from '../Search';
import { useDefaultSearchFilters, useEnterpriseCustomer } from '../../app/data';
import { useAlgoliaSearch } from '../../../utils/hooks';
import { enterpriseCustomerFactory } from '../../app/data/services/data/__factories__';
import SearchVideo from '../SearchVideo';
Expand Down

0 comments on commit c754070

Please sign in to comment.