Skip to content

Commit

Permalink
move optimizely scroll depth mock to jumpTo test file
Browse files Browse the repository at this point in the history
  • Loading branch information
louisearchibald committed Nov 15, 2024
1 parent 167afb4 commit dc90eae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/components/JumpTo/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import pidginArticleFixtureWithJumpToBlock from './fixtureData';
import * as viewTracking from '../../hooks/useViewTracker';
import * as clickTracking from '../../hooks/useClickTrackerHandler';

jest.mock('#app/hooks/useOptimizelyScrollDepth');

describe('JumpTo Component', () => {
const jumpToBlock =
pidginArticleFixtureWithJumpToBlock.data.article.content.model.blocks.find(
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/ArticlePage/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jest.mock('../../components/ChartbeatAnalytics', () => {
jest.mock('../../components/ATIAnalytics');
jest.mock('#app/legacy/containers/OptimizelyArticleCompleteTracking');
jest.mock('#app/legacy/containers/OptimizelyPageViewTracking');
jest.mock('#app/hooks/useOptimizelyScrollDepth');

jest.mock('#app/hooks/useOptimizelyVariation', () => ({
__esModule: true,
Expand Down

0 comments on commit dc90eae

Please sign in to comment.