From 12a072ded4d8528296bcf9fde6ae8324588da97e Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 27 May 2026 14:10:19 -0400 Subject: Update unit tests --- src/scraper.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/scraper.test.ts b/src/scraper.test.ts index c20a5ff..42ddd6e 100644 --- a/src/scraper.test.ts +++ b/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; }, -- cgit v1.3.1