TypeScript
test: remove unreachable github cli decoding test (#28115)
t3-code-bot[bot]132be33afffa
diff --git a/packages/source-control-github/src/server/gitHubPullRequests.test.ts b/packages/source-control-github/src/server/gitHubPullRequests.test.tsindex 054e1910a8b..ce97f7400c5 100644--- a/packages/source-control-github/src/server/gitHubPullRequests.test.ts+++ b/packages/source-control-github/src/server/gitHubPullRequests.test.ts@@ -26,42 +26,6 @@ it("names a fork's head repository from its owner when gh leaves nameWithOwner o});});-it("skips rows that do not decode and trims the ones that do", () => {- const decoded = decodeGitHubPullRequestListJson(- JSON.stringify([- {- number: 0,- title: "invalid",- url: "https://github.com/pingdotgg/codething-mvp/pull/0",- baseRefName: "main",- headRefName: "feature/invalid",- },- {- number: 15,- title: " Valid PR title ",- url: " https://github.com/pingdotgg/codething-mvp/pull/15 ",- baseRefName: " main ",- headRefName: "\tfeature/status-valid-pr-entry\t",- headRepository: { nameWithOwner: " " },- headRepositoryOwner: { login: " " },- },- ]),- );-- const rows = Result.getOrThrow(decoded);- expect(rows).toHaveLength(1);- expect(rows[0]).toMatchObject({- number: 15,- title: "Valid PR title",- url: "https://github.com/pingdotgg/codething-mvp/pull/15",- baseRefName: "main",- headRefName: "feature/status-valid-pr-entry",- state: "open",- });- expect(rows[0]).not.toHaveProperty("headRepositoryNameWithOwner");- expect(rows[0]).not.toHaveProperty("headRepositoryOwnerLogin");-});-it("reads lowercase closed and merged states", () => {const row = (number: number, state: string) => ({number,