summary refs log tree commit diff
path: root/api/tests/routes.test.ts
diff options
context:
space:
mode:
authoruurgothat <cckhmck@gmail.com>2021-10-17 21:49:46 +0300
committeruurgothat <cckhmck@gmail.com>2021-10-17 21:49:46 +0300
commitdb3d6e116a3b49669103abdf5f2d156b2c78c3c4 (patch)
tree1a1a5f4d03ca5d0b94ca5f47456e7cd536ba21e7 /api/tests/routes.test.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
parentUpdate README.md (diff)
downloadserver-db3d6e116a3b49669103abdf5f2d156b2c78c3c4.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-server
Diffstat (limited to 'api/tests/routes.test.ts')
-rw-r--r--api/tests/routes.test.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/api/tests/routes.test.ts b/api/tests/routes.test.ts

index ed391dfb..35d74a94 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) { @@ -56,9 +56,7 @@ beforeAll(async (done) => { const response = await request("/auth/register", { body: { fingerprint: "805826570869932034.wR8vi8lGlFBJerErO9LG5NViJFw", - email: "test@example.com", username: "tester", - password: "wtp9gep9gw", invite: null, consent: true, date_of_birth: "2000-01-01",