Fixed: api auth status -> get response

This commit is contained in:
Filip Rojek 2024-05-02 01:45:30 +02:00
parent cdc5970b3a
commit f12cae20ae

View File

@ -217,5 +217,8 @@ describe('GET /api/v1/auth/status', () => {
const jwt = await login(); const jwt = await login();
const res = await request.get(url).set('Cookie', jwt).send(); const res = await request.get(url).set('Cookie', jwt).send();
expect(res.statusCode).toBe(200); 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()
}); });
}); });