Skip to content

Commit c91d801

Browse files
author
Dushyant Bhalgami (bountyCoder)
committed
updated mock tests with groups v5
1 parent 56807ee commit c91d801

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

__tests__/__snapshots__/index.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,17 @@ Object {
247247
"countReset": [Function],
248248
"debug": [Function],
249249
"dir": [Function],
250+
"dirxml": [Function],
250251
"error": [Function],
251252
"group": [Function],
252253
"groupCollapsed": [Function],
253254
"groupEnd": [Function],
254255
"info": [Function],
255256
"log": [Function],
257+
"table": [Function],
256258
"time": [Function],
257259
"timeEnd": [Function],
260+
"timeLog": [Function],
258261
"trace": [Function],
259262
"warn": [Function],
260263
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
3232
"test": "npm run lint && npm run jest"
3333
},
34-
"version": "1000.5.9",
34+
"version": "1000.5.10",
3535
"dependencies": {
3636
"auth0-js": "^6.8.4",
3737
"config": "^3.2.0",

src/services/__mocks__/groups.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class GroupService {
172172
*/
173173
constructor(tokenV3) {
174174
this.private = {
175-
api: getApi('V3', tokenV3),
175+
api: getApi('V5', tokenV3),
176176
tokenV3,
177177
};
178178
}
@@ -185,9 +185,8 @@ class GroupService {
185185
* @return {Promise}
186186
*/
187187
addMember(groupId, memberId, membershipType) {
188-
return this.private.api.postJson(`/groups/${groupId}/members`, {
189-
param: { memberId, membershipType },
190-
}).then(handleApiResponse);
188+
return this.private.api.postJson(`/groups/${groupId}/members`, { memberId, membershipType })
189+
.then(handleApiResponse);
191190
}
192191

193192
/**

0 commit comments

Comments
 (0)