Skip to content
Open
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
225 changes: 225 additions & 0 deletions __tests__/__snapshots__/index.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,31 @@ Object {
"updateChallengeDone": [Function],
"updateChallengeInit": [Function],
},
"challengeListing": Object {
"dropChallenges": [Function],
"expandTag": [Function],
"getActiveChallengesDone": [Function],
"getActiveChallengesInit": [Function],
"getAllActiveChallengesDone": [Function],
"getAllActiveChallengesInit": [Function],
"getChallengeSubtracksDone": [Function],
"getChallengeSubtracksInit": [Function],
"getChallengeTagsDone": [Function],
"getChallengeTagsInit": [Function],
"getMoreChallenges": [Function],
"getPastChallengesDone": [Function],
"getPastChallengesInit": [Function],
"getRestActiveChallengesDone": [Function],
"getRestActiveChallengesInit": [Function],
"getReviewOpportunitiesDone": [Function],
"getReviewOpportunitiesInit": [Function],
"getSrmsDone": [Function],
"getSrmsInit": [Function],
"selectCommunity": [Function],
"setDatepickerStatus": [Function],
"setFilter": [Function],
"setSort": [Function],
},
"direct": Object {
"dropAll": [Function],
"getProjectDetailsDone": [Function],
Expand Down Expand Up @@ -173,13 +198,145 @@ Object {
},
},
"challenge": Object {
"buckets": Object {
"BUCKETS": Object {
"ALL": "all",
"MY": "my",
"ONGOING": "ongoing",
"OPEN_FOR_REGISTRATION": "openForRegistration",
"PAST": "past",
"REVIEW_OPPORTUNITIES": "reviewOpportunities",
"SAVED_FILTER": "saved-filter",
"SAVED_REVIEW_OPPORTUNITIES_FILTER": "savedReviewOpportunitiesFilter",
"UPCOMING": "upcoming",
},
"BUCKET_DATA": Object {
"all": Object {
"filter": Object {
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "All Challenges",
"sorts": Array [],
},
"my": Object {
"filter": Object {
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "My Challenges",
"sorts": Array [
"most-recent",
"time-to-submit",
"num-registrants",
"num-submissions",
"prize-high-to-low",
"title-a-to-z",
],
},
"ongoing": Object {
"filter": Object {
"registrationOpen": false,
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "Ongoing challenges",
"sorts": Array [
"most-recent",
"current-phase",
"title-a-to-z",
"prize-high-to-low",
],
},
"openForRegistration": Object {
"filter": Object {
"registrationOpen": true,
"started": true,
"status": Array [
"ACTIVE",
],
},
"hideCount": false,
"name": "Open for registration",
"sorts": Array [
"most-recent",
"time-to-register",
"time-to-submit",
"num-registrants",
"num-submissions",
"prize-high-to-low",
"title-a-to-z",
],
},
"past": Object {
"filter": Object {
"status": Array [
"COMPLETED",
"PAST",
],
},
"hideCount": true,
"name": "Past challenges",
"sorts": Array [
"most-recent",
"prize-high-to-low",
"title-a-to-z",
],
},
"reviewOpportunities": Object {
"filter": Object {},
"hideCount": true,
"name": "Open for review",
"sorts": Array [
"review-opportunities-start-date",
"review-opportunities-payment",
"review-opportunities-title-a-to-z",
],
},
"savedReviewOpportunitiesFilter": Object {
"filter": Object {},
"sorts": Array [
"review-opportunities-start-date",
"review-opportunities-payment",
"review-opportunities-title-a-to-z",
],
},
"upcoming": Object {
"filter": Object {
"upcoming": true,
},
"hideCount": true,
"name": "Upcoming challenges",
"sorts": Array [
"most-recent",
"prize-high-to-low",
"title-a-to-z",
],
},
},
"default": undefined,
"getBuckets": [Function],
"isReviewOpportunitiesBucket": [Function],
"registerBucket": [Function],
},
"filter": Object {
"addTrack": [Function],
"combine": [Function],
"default": undefined,
"filterByDate": [Function],
"getFilterFunction": [Function],
"getReviewOpportunitiesFilterFunction": [Function],
"mapToBackend": [Function],
"newMeta": [Function],
"removeTrack": [Function],
"setEndDate": [Function],
"setReviewOpportunityType": [Function],
Expand All @@ -188,6 +345,67 @@ Object {
"setTags": [Function],
"setText": [Function],
},
"sort": Object {
"SORTS": Object {
"CURRENT_PHASE": "current-phase",
"MOST_RECENT": "most-recent",
"NUM_REGISTRANTS": "num-registrants",
"NUM_SUBMISSIONS": "num-submissions",
"PRIZE_HIGH_TO_LOW": "prize-high-to-low",
"REVIEW_OPPORTUNITIES_PAYMENT": "review-opportunities-payment",
"REVIEW_OPPORTUNITIES_START_DATE": "review-opportunities-start-date",
"REVIEW_OPPORTUNITIES_TITLE_A_TO_Z": "review-opportunities-title-a-to-z",
"TIME_TO_REGISTER": "time-to-register",
"TIME_TO_SUBMIT": "time-to-submit",
"TITLE_A_TO_Z": "title-a-to-z",
},
"SORTS_DATA": Object {
"current-phase": Object {
"func": [Function],
"name": "Current phase",
},
"most-recent": Object {
"func": [Function],
"name": "Most recent",
},
"num-registrants": Object {
"func": [Function],
"name": "# of registrants",
},
"num-submissions": Object {
"func": [Function],
"name": "# of submissions",
},
"prize-high-to-low": Object {
"func": [Function],
"name": "Prize high to low",
},
"review-opportunities-payment": Object {
"func": [Function],
"name": "Payment",
},
"review-opportunities-start-date": Object {
"func": [Function],
"name": "Review start date",
},
"review-opportunities-title-a-to-z": Object {
"func": [Function],
"name": "Title A-Z",
},
"time-to-register": Object {
"func": [Function],
"name": "Time to register",
},
"time-to-submit": Object {
"func": [Function],
"name": "Time to submit",
},
"title-a-to-z": Object {
"func": [Function],
"name": "Title A-Z",
},
},
},
},
"errors": Object {
"ERROR_ICON_TYPES": Object {
Expand Down Expand Up @@ -227,6 +445,7 @@ Object {
"reducers": Object {
"auth": [Function],
"challenge": [Function],
"challengeListing": [Function],
"direct": [Function],
"errors": [Function],
"groups": [Function],
Expand Down Expand Up @@ -321,11 +540,17 @@ Object {
},
"getApiResponsePayload": [Function],
"getLookerApiResponsePayload": [Function],
"processSRM": [Function],
},
"time": Object {
"default": undefined,
"delay": [Function],
"formatDuration": [Function],
},
"url": Object {
"default": undefined,
"removeTrailingSlash": [Function],
"updateQuery": [Function],
},
}
`;
1 change: 1 addition & 0 deletions __tests__/actions/__snapshots__/profile.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ Object {
},
},
"handle": "tcscoder",
"preferences": Object {},
},
"type": "PROFILE/SAVE_EMAIL_PREFERENCES_DONE",
}
Expand Down
12 changes: 6 additions & 6 deletions __tests__/reducers/__snapshots__/profile.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -939,7 +939,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -989,7 +989,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -1926,7 +1926,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -2125,7 +2125,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down Expand Up @@ -2175,7 +2175,7 @@ Object {
"deletingPhoto": false,
"deletingWebLink": false,
"emailPreferences": Object {
"TOPCODER_NL_DATA": true,
"Dev Newsletter": true,
},
"externalLinks": Array [
Object {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/reducers/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const mockActions = {
deleteWebLinkInit: mockAction('DELETE_WEB_LINK_INIT'),
deleteWebLinkDone: mockAction('DELETE_WEB_LINK_DONE', { handle, data: webLink }),
saveEmailPreferencesInit: mockAction('SAVE_EMAIL_PREFERENCES_INIT'),
saveEmailPreferencesDone: mockAction('SAVE_EMAIL_PREFERENCES_DONE', { handle, data: { subscriptions: { TOPCODER_NL_DATA: true } } }),
saveEmailPreferencesDone: mockAction('SAVE_EMAIL_PREFERENCES_DONE', { handle, preferences: { 'Dev Newsletter': true } }),
linkExternalAccountInit: mockAction('LINK_EXTERNAL_ACCOUNT_INIT'),
linkExternalAccountDone: mockAction('LINK_EXTERNAL_ACCOUNT_DONE', { handle, data: linkedAccount2 }),
unlinkExternalAccountInit: mockAction('UNLINK_EXTERNAL_ACCOUNT_INIT'),
Expand Down
1 change: 1 addition & 0 deletions config/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
API: {
V2: 'https://api.topcoder-dev.com/v2',
V3: 'https://api.topcoder-dev.com/v3',
V5: 'https://api.topcoder-dev.com/v5',
},
dummyConfigKey: 'Dummy config value',
};
Loading