Skip to content

Commit e79bf24

Browse files
test(hotspotstories): bug with the translateWithId prop using jest
1 parent 8e518c4 commit e79bf24

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/HotspotEditorModal/HotspotEditorDataSourceTab/HotspotEditorDataSourceTab.story.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const WithStateInStory = () => {
153153
thresholds={cardConfigState.thresholds}
154154
cardConfig={cardConfigState}
155155
dataItems={dataItems}
156-
translateWithId={jest.fn()}
156+
translateWithId={() => {}}
157157
onChange={(newData) => {
158158
if (Array.isArray(newData)) {
159159
setCardConfigState({
@@ -220,7 +220,7 @@ export const WithPresetValues = () => {
220220
thresholds={cardConfigState.thresholds}
221221
cardConfig={cardConfigState}
222222
dataItems={dataItems}
223-
translateWithId={jest.fn()}
223+
translateWithId={() => {}}
224224
onChange={(newData) => {
225225
if (Array.isArray(newData)) {
226226
setCardConfigState({

src/components/HotspotEditorModal/HotspotTextStyleTab/HotspotTextStyleTab.story.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const Default = () => {
6666
onDelete={(change) => {
6767
action('onDelete')(change);
6868
}}
69-
translateWithId={jest.fn()}
69+
translateWithId={() => {}}
7070
/>
7171
);
7272
};

0 commit comments

Comments
 (0)