Skip to content

Commit 8bda4cb

Browse files
committed
Fix test.
1 parent a3c58c6 commit 8bda4cb

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

__tests__/shared/components/TopcoderHeader/desktop/SubMenu/Item.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test('Matches shallow shapshot', () => {
88
renderer.render((
99
<Item
1010
currentSubMenuTitle="title"
11-
icon="icon url"
11+
icon={<div />}
1212
title="title"
1313
link="menu url"
1414
/>
@@ -18,7 +18,7 @@ test('Matches shallow shapshot', () => {
1818
renderer.render((
1919
<Item
2020
currentSubMenuTitle="another title"
21-
icon="icon url"
21+
icon={<div />}
2222
title="title"
2323
link="menu url"
2424
/>

__tests__/shared/components/TopcoderHeader/desktop/SubMenu/__snapshots__/Item.jsx.snap

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Matches shallow shapshot 1`] = `
44
<li
5-
className="src-shared-components-TopcoderHeader-desktop-SubMenu-Item-___style__item___2Q-ud src-shared-components-TopcoderHeader-desktop-SubMenu-Item-___style__current___38PHh"
5+
className="src-shared-components-TopcoderHeader-desktop-SubMenu-Item-___style__item___2b5P3 src-shared-components-TopcoderHeader-desktop-SubMenu-Item-___style__current___4GzMO"
66
role="button"
77
tabIndex={0}
88
>
@@ -11,15 +11,17 @@ exports[`Matches shallow shapshot 1`] = `
1111
openNewTab={false}
1212
to="menu url"
1313
>
14-
icon url
14+
<div
15+
aria-label="title"
16+
/>
1517
title
1618
</Link>
1719
</li>
1820
`;
1921

2022
exports[`Matches shallow shapshot 2`] = `
2123
<li
22-
className="src-shared-components-TopcoderHeader-desktop-SubMenu-Item-___style__item___2Q-ud"
24+
className="src-shared-components-TopcoderHeader-desktop-SubMenu-Item-___style__item___2b5P3"
2325
role="button"
2426
tabIndex={0}
2527
>
@@ -28,7 +30,9 @@ exports[`Matches shallow shapshot 2`] = `
2830
openNewTab={false}
2931
to="menu url"
3032
>
31-
icon url
33+
<div
34+
aria-label="title"
35+
/>
3236
title
3337
</Link>
3438
</li>

0 commit comments

Comments
 (0)