Skip to content

Commit

Permalink
Merge pull request #314 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.2.0
  • Loading branch information
luizrrodrigues authored Aug 20, 2021
2 parents 9e8cf86 + cc9c361 commit db9b9a9
Show file tree
Hide file tree
Showing 15 changed files with 4,201 additions and 4,018 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

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

### Before create a Test Release

Add `--tag test-release` to link 31 in `.circleci/config.yml`
```
- run: npm publish --tag test-release
```

### Configuration for AV-Scan scorer review type ID

Change the property in `AV_SCAN_SCORER_REVIEW_TYPE_ID` in config.
Expand Down
3 changes: 3 additions & 0 deletions __tests__/__snapshots__/index.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`Library interface test 1`] = `
Object {
"actions": Object {
"auth": Object {
"getAuthenticatedMemberGroups": [Function],
"loadProfile": [Function],
"setTcTokenV2": [Function],
"setTcTokenV3": [Function],
Expand Down Expand Up @@ -53,6 +54,7 @@ Object {
"dropGroups": [Function],
"getGroupsDone": [Function],
"getGroupsInit": [Function],
"getMemberGroups": [Function],
},
"looker": Object {
"getLookerDone": [Function],
Expand Down Expand Up @@ -403,6 +405,7 @@ Object {
},
"getApiResponsePayload": [Function],
"getLookerApiResponsePayload": [Function],
"handleApiResponse": [Function],
},
"time": Object {
"default": undefined,
Expand Down
5 changes: 4 additions & 1 deletion __tests__/reducers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const photoURL = 'http://url';
const mockActions = {
auth: {
loadProfile: mockAction('LOAD_PROFILE', Promise.resolve('Profile')),
getAuthenticatedMemberGroups: mockAction('GET_AUTHENTICATED_MEMBER_GROUPS', Promise.resolve(['Group'])),
setTcTokenV2: mockAction('SET_TC_TOKEN_V2', 'Token V2'),
setTcTokenV3: mockAction('SET_TC_TOKEN_V3', 'Token V3'),
},
Expand Down Expand Up @@ -107,6 +108,7 @@ describe('Default reducer', () => {
reducer = reducers.default;
testReducer({
authenticating: true,
memberGroups: [],
profile: null,
tokenV2: '',
tokenV3: '',
Expand All @@ -124,6 +126,7 @@ describe('Factory without server side rendering', () => {

testReducer({
authenticating: true,
memberGroups: [],
profile: null,
tokenV2: '',
tokenV3: '',
Expand All @@ -145,6 +148,6 @@ describe('Factory with server side rendering', () => {
});

testReducer({
authenticating: false, user: 'User object', profile: 'Profile', tokenV2: 'Token V2', tokenV3: 'Token V3',
authenticating: false, user: 'User object', profile: 'Profile', tokenV2: 'Token V2', tokenV3: 'Token V3', memberGroups: ['Group'],
});
});
Loading

0 comments on commit db9b9a9

Please sign in to comment.