Skip to content

Commit cb460e6

Browse files
committed
Fix linting
1 parent dfc7bd3 commit cb460e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dotcom-rendering/src/lib/personaliseHighlights.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { storage } from '@guardian/libs';
22
import { trails } from '../../fixtures/manual/highlights-trails';
33
import type { DCRFrontCard } from '../types/front';
44
import {
5-
initialiseHighlightsState,
65
getCardsFromState,
7-
getOrderedHighlights,
86
getHighlightsState,
7+
getOrderedHighlights,
98
HighlightsHistoryKey,
9+
initialiseHighlightsState,
1010
onCardClick,
1111
onCardView,
1212
onHighlightEvent,
@@ -121,8 +121,9 @@ describe('Personalise Highlights', () => {
121121
it('should cap view tracking to the first two items only and never increment others', () => {
122122
let storedHighlights = [...baseHighlights];
123123
// Run view tracking many times
124-
for (let i = 0; i < 5; i++)
124+
for (let i = 0; i < 5; i++) {
125125
storedHighlights = onCardView(storedHighlights);
126+
}
126127

127128
// Only two items per call are ever incremented (the current first two at that time).
128129
// Items not at indices 0 or 1 in any pass remain 0.

0 commit comments

Comments
 (0)