Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix the payload for adding members to group#115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
bountyC0d3r wants to merge16 commits intodevelop
base:develop
Choose a base branch
Loading
fromfix_groups_payload
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
16 commits
Select commitHold shift + click to select a range
31eb4f9
fix the payload for adding members to group
Dec 4, 2019
82cee14
Update config.yml
sushilshindeDec 5, 2019
68eee71
Update package.json
sushilshindeDec 5, 2019
48027cb
Update package.json
sushilshindeDec 18, 2019
0e67bae
updated groups api from v3 to v5
Dec 20, 2019
660559f
Update package.json
sushilshindeDec 20, 2019
53f99ae
fix the payload for adding members to group
Dec 4, 2019
98c95c7
Update package.json
sushilshindeDec 5, 2019
4f0373d
Update package.json
sushilshindeDec 18, 2019
89d47e1
updated groups api from v3 to v5
Dec 20, 2019
e0c977d
fixed testcases
Dec 20, 2019
e7c1e99
Merge branch 'fix_groups_payload' of github.com:topcoder-platform/top…
Dec 20, 2019
9ae2cf0
fixed testcases
Dec 20, 2019
4cde4f8
snapshot
sushilshindeJan 6, 2020
a3f1033
Update package.json
sushilshindeJan 6, 2020
85dc472
Update package.json
sushilshindeJan 6, 2020
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
2 changes: 1 addition & 1 deletion.circleci/config.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,7 +28,7 @@ jobs:
- attach_workspace:
at: .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish
- run: npm publish --tag test-release

workflows:
version: 2
Expand Down
7 changes: 4 additions & 3 deletions__tests__/actions/auth.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
const MOCK_GROUPS_REQ_URL = 'https://api.topcoder-dev.com/v3/groups?memberId=12345&membershipType=user';
// const MOCK_GROUPS_REQ_URL = 'https://api.topcoder-dev.com/v3/groups?memberId=12345&membershipType=user';
const MOCK_GROUPS_REQ_URL_V5 = 'https://api.topcoder-dev.com/v5/groups?memberId=12345&membershipType=user';
const MOCK_PROFILE_REQ_URL = 'https://api.topcoder-dev.com/v3/members/username12345';

jest.mock('isomorphic-fetch', () => jest.fn(url => Promise.resolve({
json: () => {
let content;
switch (url) {
caseMOCK_GROUPS_REQ_URL: content = ['Group1', 'Group2']; break;
caseMOCK_GROUPS_REQ_URL_V5: content = ['Group1', 'Group2']; break;
case MOCK_PROFILE_REQ_URL: content = { userId: 12345 }; break;
default: throw new Error('Unexpected URL!');
}
Expand All@@ -31,7 +32,7 @@ describe('fetch with success response', () => {
'Content-Type': 'application/json',
},
});
expect(fetch).toHaveBeenCalledWith(MOCK_GROUPS_REQ_URL, {
expect(fetch).toHaveBeenCalledWith(MOCK_GROUPS_REQ_URL_V5, {
headers: {
Authorization: 'Bearer token',
'Content-Type': 'application/json',
Expand Down
1 change: 1 addition & 0 deletionsconfig/test.js
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp