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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/groups.js

Lines changed: 5 additions & 4 deletions
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)
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