From c884abb487f241e33fbb3582babb1c5c5769ffea Mon Sep 17 00:00:00 2001 From: Kisaragi Marine Date: Fri, 21 Jun 2024 04:37:18 +0900 Subject: [PATCH] =?UTF-8?q?change=20return=20type=20of=20`failedApiCall`?= =?UTF-8?q?=20to=20`void`=20=E6=88=BB=E3=82=8A=E5=80=A4=E3=81=8C=E3=81=A9?= =?UTF-8?q?=E3=81=93=E3=81=AB=E3=82=82=E4=BD=BF=E3=82=8F=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/test/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);