From 78f6d7d8cc316dc59a8f86e0da82bd8e7c7aa63c Mon Sep 17 00:00:00 2001 From: juancarmore Date: Mon, 5 May 2025 14:35:58 +0200 Subject: [PATCH] tests: Refactor expectValidationError to use consistent parameter naming --- backend/tests/helpers/assertion-helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }]); }; /**