summary refs log tree commit diff
path: root/api/tests
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 13:32:26 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 13:32:26 +0200
commite1b991dfd14278b0c60163d92e4db0f18269b112 (patch)
treec9ed9bc8c7b00ded9207c9fcc9365e86d57fc146 /api/tests
parent:art: reformat (diff)
parent:bug: fix unittests (diff)
downloadserver-e1b991dfd14278b0c60163d92e4db0f18269b112.tar.xz
Merge branch 'master' into sticker
Diffstat (limited to 'api/tests')
-rw-r--r--api/tests/routes.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/tests/routes.test.ts b/api/tests/routes.test.ts

index ed391dfb..2c265ee3 100644 --- a/api/tests/routes.test.ts +++ b/api/tests/routes.test.ts
@@ -43,7 +43,7 @@ const request = async (path: string, opts: any = {}): Promise<any> => { var data = await response.text(); try { - data = JSON.stringify(data); + data = JSON.parse(data); if (response.status >= 400) throw data; return data; } catch (error) {