Skip to content

Commit 6286153

Browse files
authored
Merge pull request #178 from simranb86/fix_tests
fix tests
2 parents 2b8c31e + edd0eaf commit 6286153

File tree

4 files changed

+64
-64
lines changed

4 files changed

+64
-64
lines changed

__tests__/actions/__snapshots__/challenge.js.snap

+2-2
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

+4-4
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)