Skip to content

Commit 48fbdf4

Browse files
author
“LAKSHMIRPILLAI”
committed
Update tests for tickerSettings change
1 parent 6db744d commit 48fbdf4

File tree

3 files changed

+3
-31
lines changed

3 files changed

+3
-31
lines changed

dotcom-rendering/src/components/marketing/banners/designableBanner/stories/DesignableBanner.stories.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
* This file was migrated from:
44
* https://github.com/guardian/support-dotcom-components/blob/0a2439b701586a7a2cc60dce10b4d96cf7a828db/packages/modules/src/modules/banners/designableBanner/stories/DesignableBanner.stories.tsx
55
*/
6-
import {
7-
SecondaryCtaType,
8-
TickerCountType,
9-
TickerEndType,
10-
} from '@guardian/support-dotcom-components';
6+
import { SecondaryCtaType } from '@guardian/support-dotcom-components';
117
import type {
128
BannerDesignImage,
139
SelectedAmountsVariant,
@@ -55,13 +51,9 @@ export const Default: Story = {
5551
};
5652

5753
const tickerSettings: TickerSettings = {
58-
endType: TickerEndType.unlimited,
59-
countType: TickerCountType.money,
6054
currencySymbol: '£',
6155
copy: {
6256
countLabel: '',
63-
goalReachedPrimary: '',
64-
goalReachedSecondary: '',
6557
},
6658
tickerData: {
6759
total: 500000,

dotcom-rendering/src/components/marketing/epics/ContributionsEpic.stories.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
* https://github.com/guardian/support-dotcom-components/blob/a482b35a25ca59f66501c4de02de817046206298/packages/modules/src/modules/epics/ContributionsEpic.stories.tsx
55
*/
66
import { css } from '@emotion/react';
7-
import {
8-
SecondaryCtaType,
9-
TickerCountType,
10-
TickerEndType,
11-
} from '@guardian/support-dotcom-components';
7+
import { SecondaryCtaType } from '@guardian/support-dotcom-components';
128
import type { Meta, StoryObj } from '@storybook/react';
139
import lzstring from 'lz-string';
1410
import React from 'react';
@@ -198,13 +194,9 @@ export const WithTicker: Story = {
198194
variant: {
199195
...props.variant,
200196
tickerSettings: {
201-
endType: TickerEndType.unlimited,
202-
countType: TickerCountType.money,
203197
currencySymbol: '£',
204198
copy: {
205199
countLabel: 'Help us reach our end-of-year goal',
206-
goalReachedPrimary: '',
207-
goalReachedSecondary: '',
208200
},
209201
tickerData: {
210202
total: 10000,
@@ -226,13 +218,9 @@ export const WithTickerAndWithAboveTopReaderArticleCount: Story = {
226218
type: 'above',
227219
},
228220
tickerSettings: {
229-
endType: TickerEndType.unlimited,
230-
countType: TickerCountType.money,
231221
currencySymbol: '£',
232222
copy: {
233223
countLabel: 'Help us reach our end-of-year goal',
234-
goalReachedPrimary: '',
235-
goalReachedSecondary: '',
236224
},
237225
tickerData: {
238226
total: 10000,

dotcom-rendering/src/components/marketing/epics/ContributionsLiveblogEpic.stories.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
* This file was migrated from:
44
* https://github.com/guardian/support-dotcom-components/blob/9c3eae7cb0b159db4a1c40679d6b37710b0bb937/packages/modules/src/modules/epics/ContributionsLiveblogEpic.stories.tsx
55
*/
6-
import {
7-
SecondaryCtaType,
8-
TickerCountType,
9-
TickerEndType,
10-
} from '@guardian/support-dotcom-components';
6+
import { SecondaryCtaType } from '@guardian/support-dotcom-components';
117
import type { Meta, StoryObj } from '@storybook/react';
128
import lzstring from 'lz-string';
139
import React from 'react';
@@ -114,13 +110,9 @@ export const WithTicker: Story = {
114110
secondaryCta: undefined,
115111
showChoiceCards: true,
116112
tickerSettings: {
117-
endType: TickerEndType.unlimited,
118-
countType: TickerCountType.money,
119113
currencySymbol: '£',
120114
copy: {
121115
countLabel: 'Help us reach our end-of-year goal',
122-
goalReachedPrimary: '',
123-
goalReachedSecondary: '',
124116
},
125117
tickerData: {
126118
total: 10000,

0 commit comments

Comments
 (0)