Skip to content

Commit e2e5d1c

Browse files
Fix snapshot
1 parent 79ef6ce commit e2e5d1c

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

__tests__/shared/components/challenge-listing/Filters/FiltersPanel.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ const mockDatas = [{
1515
{
1616
communityId: '123',
1717
communityName: 'Sample community',
18+
groupIds: ['123'],
1819
},
1920
],
21+
challengeFilter: {
22+
groupIds: ['123'],
23+
},
2024
filterState: {
2125
groups: [],
2226
},
@@ -34,8 +38,12 @@ const mockDatas = [{
3438
{
3539
communityId: '123',
3640
communityName: 'Sample community',
41+
groupIds: ['123'],
3742
},
3843
],
44+
challengeFilter: {
45+
groupIds: ['123'],
46+
},
3947
filterState: {
4048
groups: [],
4149
},

__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,18 @@ exports[`Matches shallow shapshot 1`] = `
8282
clearable={false}
8383
id="community-select"
8484
onChange={[Function]}
85-
options={Array []}
85+
options={
86+
Array [
87+
Object {
88+
"data": <div>
89+
Sample community
90+
</div>,
91+
"label": "Sample community",
92+
"name": "Sample community",
93+
"value": "123",
94+
},
95+
]
96+
}
8697
selectRef={[Function]}
8798
simpleValue={true}
8899
value=""
@@ -267,7 +278,18 @@ exports[`Matches shallow shapshot 2`] = `
267278
clearable={false}
268279
id="community-select"
269280
onChange={[Function]}
270-
options={Array []}
281+
options={
282+
Array [
283+
Object {
284+
"data": <div>
285+
Sample community
286+
</div>,
287+
"label": "Sample community",
288+
"name": "Sample community",
289+
"value": "123",
290+
},
291+
]
292+
}
271293
selectRef={[Function]}
272294
simpleValue={true}
273295
value=""

0 commit comments

Comments
 (0)