diff options
| author | Joe Mou <dev@mou.fo> | 2026-05-27 14:10:19 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-05-27 14:10:56 -0400 |
| commit | 123da65350888dc0fbe04003c5ffc36fdded3a46 (patch) | |
| tree | 1a56d837ca21b9d5e6159922960aa8799619c6bb | |
| parent | cfe74db6c177151da3d1bc8549732e3d39448040 (diff) | |
Update unit tests
| -rw-r--r-- | cgithub/src/scraper.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cgithub/src/scraper.test.ts b/cgithub/src/scraper.test.ts index c20a5ff..42ddd6e 100644 --- a/cgithub/src/scraper.test.ts +++ b/cgithub/src/scraper.test.ts @@ -249,10 +249,10 @@ describe("GitHub scraper", () => { it("should redirect when fetching a directory as a blob", async () => { await assert.rejects( - getGitHubBlob("badlogic", "pi-mono", "main", "packages/agent"), + getGitHubBlob("earendil-works", "pi", "main", "packages/agent"), (err) => { assert(err instanceof RedirectError, "error should be a RedirectError"); - assert.strictEqual(err.location, "/badlogic/pi-mono/tree/main/packages/agent"); + assert.strictEqual(err.location, "/earendil-works/pi/tree/main/packages/agent"); return true; }, ); @@ -260,12 +260,12 @@ describe("GitHub scraper", () => { it("should redirect when fetching a file as a tree", async () => { await assert.rejects( - getGitHubTree("badlogic", "pi-mono", "main", "packages/agent/package.json"), + getGitHubTree("earendil-works", "pi", "main", "packages/agent/package.json"), (err) => { assert(err instanceof RedirectError, "error should be a RedirectError"); assert.strictEqual( err.location, - "/badlogic/pi-mono/blob/main/packages/agent/package.json", + "/earendil-works/pi/blob/main/packages/agent/package.json", ); return true; }, |
