diff --git a/modules/gitea/test/announcing.test.ts b/modules/gitea/test/announcing.test.ts index ac607bb8..a1299d7e 100644 --- a/modules/gitea/test/announcing.test.ts +++ b/modules/gitea/test/announcing.test.ts @@ -42,10 +42,10 @@ test("every open pull request is read with what its base requires and what its h ] : []); } if (url.startsWith("/api/v1/repos/novox/hq/pulls/243")) { - return send({ number: 243, state: "open", base: { ref: "main" }, head: { ref: "x", sha: "aaa111" }, html_url: "h" }); + return send({ number: 243, state: "open", base: { ref: "main" }, head: { ref: "x", sha: "aaa1111" }, html_url: "h" }); } if (url.startsWith("/api/v1/repos/novox/mesh-sdk/pulls/14")) { - return send({ number: 14, state: "open", base: { ref: "main" }, head: { ref: "y", sha: "bbb222" }, html_url: "s" }); + return send({ number: 14, state: "open", base: { ref: "main" }, head: { ref: "y", sha: "bbb2222" }, html_url: "s" }); } if (url.startsWith("/api/v1/repos/novox/hq/branch_protections")) { return send([{ rule_name: "main", enable_status_check: true, status_check_contexts: ["mesh/repo-check"] }]); @@ -53,8 +53,8 @@ test("every open pull request is read with what its base requires and what its h if (url.startsWith("/api/v1/repos/novox/mesh-sdk/branch_protections")) { return send([{ rule_name: "main", enable_status_check: true, status_check_contexts: ["mesh/merge-gate", "mesh/repo-check"] }]); } - if (url.includes("/commits/aaa111/status")) return send({ statuses: [] }); - if (url.includes("/commits/bbb222/status")) return send({ statuses: [{ context: "mesh/merge-gate", status: "pending" }] }); + if (url.includes("/commits/aaa1111/status")) return send({ statuses: [] }); + if (url.includes("/commits/bbb2222/status")) return send({ statuses: [{ context: "mesh/merge-gate", status: "pending" }] }); res.statusCode = 404; res.end("{}"); }); @@ -63,8 +63,8 @@ test("every open pull request is read with what its base requires and what its h try { const open = await client.openPulls(); assert.deepEqual(open.map((p) => [p.owner, p.repo, p.number, p.base, p.head_sha, p.required, p.statuses]), [ - ["novox", "hq", 243, "main", "aaa111", ["mesh/repo-check"], []], - ["novox", "mesh-sdk", 14, "main", "bbb222", ["mesh/merge-gate", "mesh/repo-check"], ["mesh/merge-gate"]], + ["novox", "hq", 243, "main", "aaa1111", ["mesh/repo-check"], []], + ["novox", "mesh-sdk", 14, "main", "bbb2222", ["mesh/merge-gate", "mesh/repo-check"], ["mesh/merge-gate"]], ]); } finally { server.close();