Skip to content

Commit e918074

Browse files
Merge branch 'integration-v5-challenge-api' into issue-4408
2 parents 3d68bb0 + 8449cba commit e918074

File tree

11 files changed

+10550
-8695
lines changed

11 files changed

+10550
-8695
lines changed

__tests__/__snapshots__/index.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ Object {
340340
"reviewOpportunities": Object {
341341
"default": undefined,
342342
"getReviewOpportunitiesService": [Function],
343+
"normalizeChallenges": [Function],
343344
},
344345
"submissions": Object {
345346
"default": undefined,

__tests__/actions/__snapshots__/challenge.js.snap

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

33
exports[`challenge.fetchChallengeInit 1`] = `
44
Object {
5-
"payload": "12345",
5+
"payload": "123456789",
66
"type": "CHALLENGE/GET_DETAILS_INIT",
77
}
88
`;
@@ -16,7 +16,7 @@ Object {
1616

1717
exports[`challenge.fetchSubmissionsInit 1`] = `
1818
Object {
19-
"payload": "12345",
19+
"payload": "123456789",
2020
"type": "CHALLENGE/GET_SUBMISSIONS_INIT",
2121
}
2222
`;

__tests__/actions/challenge.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import { actions } from '../../src';
33
jest.mock('../../src/services/challenges');
44

55
test('challenge.fetchChallengeInit', () => {
6-
expect(actions.challenge.getDetailsInit(12345)).toMatchSnapshot();
6+
expect(actions.challenge.getDetailsInit(123456789)).toMatchSnapshot();
77
});
88

99
test('challenge.fetchSubmissionsInit', () => {
10-
expect(actions.challenge.getSubmissionsInit(12345)).toMatchSnapshot();
10+
expect(actions.challenge.getSubmissionsInit(123456789)).toMatchSnapshot();
1111
});
1212

1313

1414
test('challenge.getDetailsDone', () => {
15-
expect(actions.challenge.getDetailsDone(12345)).toMatchSnapshot();
15+
expect(actions.challenge.getDetailsDone(123456789)).toMatchSnapshot();
1616
});
1717

1818
test('challenge.fetchSubmissionsDone', () => {
19-
expect(actions.challenge.getSubmissionsDone(12345, {})).toMatchSnapshot();
19+
expect(actions.challenge.getSubmissionsDone(123456789, {})).toMatchSnapshot();
2020
});
2121

2222
test('challenge.getActiveChallengesCountInit', () => {

0 commit comments

Comments
 (0)