diff --git a/backend/tests/helpers/assertion-helpers.ts b/backend/tests/helpers/assertion-helpers.ts index daed9d5..1013222 100644 --- a/backend/tests/helpers/assertion-helpers.ts +++ b/backend/tests/helpers/assertion-helpers.ts @@ -44,8 +44,8 @@ export const expectErrorResponse = ( ); }; -export const expectValidationError = (response: any, path: string, message: string) => { - expectErrorResponse(response, 422, 'Unprocessable Entity', 'Invalid request', [{ field: path, message }]); +export const expectValidationError = (response: any, field: string, message: string) => { + expectErrorResponse(response, 422, 'Unprocessable Entity', 'Invalid request', [{ field, message }]); }; /**