diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-15 13:00:23 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-15 13:00:23 +0200 |
commit | 182de09ccc588b21b0e8e09fd02e5d09885076b3 (patch) | |
tree | 292b9d688371eeb5804491dda85f63311867125a /api/tests | |
parent | Merge pull request #459 from hbjydev/cdn-s3 (diff) | |
download | server-182de09ccc588b21b0e8e09fd02e5d09885076b3.tar.xz |
:bug: fix unittests
Diffstat (limited to 'api/tests')
-rw-r--r-- | api/tests/routes.test.ts | 2 |
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) { |