diff --git a/packages/backend/test/utils.ts b/packages/backend/test/utils.ts index 46dc8e86fc..a04a20c478 100644 --- a/packages/backend/test/utils.ts +++ b/packages/backend/test/utils.ts @@ -51,11 +51,11 @@ export const successfulApiCall = async (request: ApiRequest, assertion: { +export const failedApiCall = async (request: ApiRequest, assertion: { status: number, code: string, id: string -}): Promise => { +}): Promise => { const { endpoint, parameters, user } = request; const { status, code, id } = assertion; const res = await api(endpoint, parameters, user);