From a27d4be764b78c1b5a9eac685e261fee49331d89 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 22 Sep 2024 10:45:49 +0900 Subject: [PATCH] Update utils.ts --- packages/backend/test/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/test/utils.ts b/packages/backend/test/utils.ts index 26de19eaf1..6934488b61 100644 --- a/packages/backend/test/utils.ts +++ b/packages/backend/test/utils.ts @@ -157,6 +157,10 @@ export const post = async (user: UserToken, params: misskey.Endpoints['notes/cre const res = await api('notes/create', q, user); + if (res.status !== 200) { + console.log(res); + } + // FIXME: the return type should reflect this fact. return (res.body ? res.body.createdNote : null)!; };