large mock refector hopefully done + no errors?
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 1h17m3s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 1h17m3s
This commit is contained in:
@@ -285,7 +285,14 @@ describe('Auth Routes (/api/auth)', () => {
|
||||
|
||||
// Assert
|
||||
expect(response.status).toBe(200);
|
||||
expect(response.body.user).toEqual({ user_id: 'user-123', email: loginCredentials.email });
|
||||
// The API now returns a nested UserProfile object
|
||||
expect(response.body.user).toEqual(expect.objectContaining({
|
||||
user_id: 'user-123',
|
||||
user: expect.objectContaining({
|
||||
user_id: 'user-123',
|
||||
email: loginCredentials.email
|
||||
})
|
||||
}));
|
||||
expect(response.body.token).toBeTypeOf('string');
|
||||
expect(response.headers['set-cookie']).toBeDefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user