Skip to content

Commit e210dc5

Browse files
author
Dushyant Bhalgami
committed
fixed testcases
1 parent d1ed728 commit e210dc5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

__tests__/__snapshots__/index.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,17 @@ Object {
212212
"countReset": [Function],
213213
"debug": [Function],
214214
"dir": [Function],
215+
"dirxml": [Function],
215216
"error": [Function],
216217
"group": [Function],
217218
"groupCollapsed": [Function],
218219
"groupEnd": [Function],
219220
"info": [Function],
220221
"log": [Function],
222+
"table": [Function],
221223
"time": [Function],
222224
"timeEnd": [Function],
225+
"timeLog": [Function],
223226
"trace": [Function],
224227
"warn": [Function],
225228
},

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/groups.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ export function checkUserGroups(groupIds, userGroups, knownGroups) {
139139
*/
140140
function handleApiResponse(response) {
141141
if (!response.ok) throw new Error(response.statusText);
142-
return response.json().then(({ result }) => {
143-
// if (result.status !== 200) throw new Error(result.content);
144-
return response.json();
145-
});
142+
return response.json();
143+
// return response.json().then(({ result }) => {
144+
// return result;
145+
// if (result.status !== 200) throw new Error(result.content);
146+
// });
146147
}
147148

148149
/**

0 commit comments

Comments
 (0)