diff --git a/packages/testkit/test/ci.test.ts b/packages/testkit/test/ci.test.ts index 0e7db66c..83c93d59 100644 --- a/packages/testkit/test/ci.test.ts +++ b/packages/testkit/test/ci.test.ts @@ -65,7 +65,7 @@ describe("CI: connect a project", () => { assert.equal(registrations().length, before, "no per-repo runner for peppa-bot's repos"); const repo = gitea.repo(BOT.login, p.giteaRepo); assert.equal(repo.secrets.PEPPA_CI_SECRET, core.projectHookSecret(p.id)); - assert.deepEqual(repo.hooks.map((h) => [h.url, h.secret, h.events]), [[runner.giteaHookUrl(), core.projectHookSecret(p.id), ["pull_request", "push"]]]); + assert.deepEqual(repo.hooks.map((h) => [h.url, h.secret, h.events]), [[runner.giteaHookUrl(), core.projectHookSecret(p.id), runner.GITEA_HOOK_EVENTS]]); assert.match(runner.giteaHookUrl(), /\/api\/hooks\/gitea$/); assert.ok(r.prUrl?.endsWith("/pulls/1")); const pr = repo.pulls[0]!;