Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions __tests__/shared/actions/challenge-listing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('live challenge listing filters', () => {
}));
});

test('only requests My Challenges with an open submission phase', async () => {
test('requests all active challenges registered to the member', async () => {
const action = actions.getMyChallengesDone(
'my-uuid',
0,
Expand All @@ -74,11 +74,12 @@ describe('live challenge listing filters', () => {
expect(mockGetChallenges).toHaveBeenCalledWith(expect.objectContaining({
backendFilter,
frontFilter: expect.objectContaining({
currentPhaseName: 'Submission',
memberId: '123',
status: 'ACTIVE',
}),
}));
expect(mockGetChallenges.mock.calls[0][0].frontFilter)
.not.toHaveProperty('currentPhaseName');
});

test('counts only live challenges with an open submission phase', async () => {
Expand Down
1 change: 0 additions & 1 deletion src/shared/actions/challenge-listing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ function getMyChallengesDone(uuid, page, backendFilter, tokenV3, frontFilter = {
...frontFilter,
...extractSearchFilter(frontFilter),
status: 'ACTIVE',
currentPhaseName: 'Submission',
memberId: userId,
perPage: PAGE_SIZE,
page: page + 1,
Expand Down
Loading