From fb88f90994376a7def1ea012d1a8975115d2afcb Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Wed, 31 Jul 2024 12:38:52 +0900 Subject: [PATCH] chore: fixed close PR test --- tests/main.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/main.test.ts b/tests/main.test.ts index ef790a26..fcbc279e 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -98,6 +98,13 @@ describe("Action tests", () => { return HttpResponse.json({}, { status: 404 }); }, { once: true } + ), + http.get( + "https://api.github.com/repos/:org/:repo/issues/:id/timeline", + () => { + return HttpResponse.json([{ id: 1, created_at: lastActivityDate }]); + }, + { once: true } ) ); jest.mock(actionsGithubPackage, () => ({