Skip to content

Commit db9b9a9

Browse files
Merge pull request topcoder-platform#314 from topcoder-platform/develop
Release v1.2.0
2 parents 9e8cf86 + cc9c361 commit db9b9a9

File tree

15 files changed

+4201
-4018
lines changed

15 files changed

+4201
-4018
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
The [Topcoder](https://www.topcoder.com) lib for internal ReactJS projects.
88

9+
### Before create a Test Release
10+
11+
Add `--tag test-release` to link 31 in `.circleci/config.yml`
12+
```
13+
- run: npm publish --tag test-release
14+
```
15+
916
### Configuration for AV-Scan scorer review type ID
1017

1118
Change the property in `AV_SCAN_SCORER_REVIEW_TYPE_ID` in config.

__tests__/__snapshots__/index.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ exports[`Library interface test 1`] = `
44
Object {
55
"actions": Object {
66
"auth": Object {
7+
"getAuthenticatedMemberGroups": [Function],
78
"loadProfile": [Function],
89
"setTcTokenV2": [Function],
910
"setTcTokenV3": [Function],
@@ -53,6 +54,7 @@ Object {
5354
"dropGroups": [Function],
5455
"getGroupsDone": [Function],
5556
"getGroupsInit": [Function],
57+
"getMemberGroups": [Function],
5658
},
5759
"looker": Object {
5860
"getLookerDone": [Function],
@@ -403,6 +405,7 @@ Object {
403405
},
404406
"getApiResponsePayload": [Function],
405407
"getLookerApiResponsePayload": [Function],
408+
"handleApiResponse": [Function],
406409
},
407410
"time": Object {
408411
"default": undefined,

__tests__/reducers/auth.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const photoURL = 'http://url';
88
const mockActions = {
99
auth: {
1010
loadProfile: mockAction('LOAD_PROFILE', Promise.resolve('Profile')),
11+
getAuthenticatedMemberGroups: mockAction('GET_AUTHENTICATED_MEMBER_GROUPS', Promise.resolve(['Group'])),
1112
setTcTokenV2: mockAction('SET_TC_TOKEN_V2', 'Token V2'),
1213
setTcTokenV3: mockAction('SET_TC_TOKEN_V3', 'Token V3'),
1314
},
@@ -107,6 +108,7 @@ describe('Default reducer', () => {
107108
reducer = reducers.default;
108109
testReducer({
109110
authenticating: true,
111+
memberGroups: [],
110112
profile: null,
111113
tokenV2: '',
112114
tokenV3: '',
@@ -124,6 +126,7 @@ describe('Factory without server side rendering', () => {
124126

125127
testReducer({
126128
authenticating: true,
129+
memberGroups: [],
127130
profile: null,
128131
tokenV2: '',
129132
tokenV3: '',
@@ -145,6 +148,6 @@ describe('Factory with server side rendering', () => {
145148
});
146149

147150
testReducer({
148-
authenticating: false, user: 'User object', profile: 'Profile', tokenV2: 'Token V2', tokenV3: 'Token V3',
151+
authenticating: false, user: 'User object', profile: 'Profile', tokenV2: 'Token V2', tokenV3: 'Token V3', memberGroups: ['Group'],
149152
});
150153
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy