The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 03:15 UTC
test: remove unreachable github cli decoding test (#28115)
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
t3-code-bot[bot] committed
Nov 5, 2026 at 14:19 UTC
132be33afffac9b98891b56845bf6aa3e8d55172
1 file changed
-36
packages/source-control-github/src/server/gitHubPullRequests.test.ts
-36
@@ -26,42 +26,6 @@ it("names a fork's head repository from its owner when gh leaves nameWithOwner o
26
});
27
});
28
29
-it("skips rows that do not decode and trims the ones that do", () => {
30
- const decoded = decodeGitHubPullRequestListJson(
31
- JSON.stringify([
32
- {
33
- number: 0,
34
- title: "invalid",
35
- url: "https://github.com/pingdotgg/codething-mvp/pull/0",
36
- baseRefName: "main",
37
- headRefName: "feature/invalid",
38
- },
39
- {
40
- number: 15,
41
- title: " Valid PR title ",
42
- url: " https://github.com/pingdotgg/codething-mvp/pull/15 ",
43
- baseRefName: " main ",
44
- headRefName: "\tfeature/status-valid-pr-entry\t",
45
- headRepository: { nameWithOwner: " " },
46
- headRepositoryOwner: { login: " " },
47
- },
48
- ]),
49
- );
50
-
51
- const rows = Result.getOrThrow(decoded);
52
- expect(rows).toHaveLength(1);
53
- expect(rows[0]).toMatchObject({
54
- number: 15,
55
- title: "Valid PR title",
56
- url: "https://github.com/pingdotgg/codething-mvp/pull/15",
57
- baseRefName: "main",
58
- headRefName: "feature/status-valid-pr-entry",
59
- state: "open",
60
- });
61
- expect(rows[0]).not.toHaveProperty("headRepositoryNameWithOwner");
62
- expect(rows[0]).not.toHaveProperty("headRepositoryOwnerLogin");
63
-});
64
-
29
it("reads lowercase closed and merged states", () => {
30
const row = (number: number, state: string) => ({
31
number,