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, () => ({