From f12cae20ae17c7427f01fc21d664a9794ab40e45 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Thu, 2 May 2024 01:45:30 +0200 Subject: [PATCH] Fixed: api auth status -> get response --- api/tests/auth.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/tests/auth.test.ts b/api/tests/auth.test.ts index b736146..66c576c 100644 --- a/api/tests/auth.test.ts +++ b/api/tests/auth.test.ts @@ -217,5 +217,8 @@ describe('GET /api/v1/auth/status', () => { const jwt = await login(); const res = await request.get(url).set('Cookie', jwt).send(); expect(res.statusCode).toBe(200); + expect(res.body.data.username).toBe("Test Test") + expect(res.body.data.email).toBe("thisistest@host.local") + expect(res.body.data.password).toBeUndefined() }); }); \ No newline at end of file