fix(server): avoid server error for invalid email data type (#10978)

* fix(server): avoid server error for invalid email data type

* add e2e test

* fix e2e
This commit is contained in:
Michel Heusschen
2024-07-10 13:58:06 +02:00
committed by GitHub
parent 27b13b82f5
commit bd88b079ea
5 changed files with 36 additions and 4 deletions

View File

@@ -61,6 +61,12 @@ export const errorDto = {
message: 'The server already has an admin',
correlationId: expect.any(String),
},
invalidEmail: {
error: 'Bad Request',
statusCode: 400,
message: ['email must be an email'],
correlationId: expect.any(String),
},
};
export const signupResponseDto = {