From 439f783c9e3b18519505d1ad6b8533bea081cca0 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Thu, 3 Sep 2026 15:07:25 -0400 Subject: Clean up renderer, redirects, and build commit --- cgithub/src/app.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cgithub/src/app.test.ts') diff --git a/cgithub/src/app.test.ts b/cgithub/src/app.test.ts index 8519d91..274b2d5 100644 --- a/cgithub/src/app.test.ts +++ b/cgithub/src/app.test.ts @@ -195,7 +195,10 @@ describe("commit history", () => { assert.match(html, /href="\/actions\/deploy-pages\/commits\/main">\(top\)srclib<\/a>\/index\.js/); + assert.match( + html, + /href="\/actions\/deploy-pages\/commits\/main\/src\/lib">lib<\/a>\/index\.js/, + ); }); it("should say so when a path has no history", () => { @@ -363,9 +366,9 @@ describe("redirects to GitHub", () => { assert.strictEqual(res.status, 200); assert.strictEqual(res.headers.get("location"), null); - assert.strictEqual(res.headers.get("Referrer-Policy"), "no-referrer"); const body = await res.text(); + assert.match(body, //); assert.match( body, //, @@ -382,6 +385,7 @@ describe("redirects to GitHub", () => { assert.strictEqual(res.status, 302); assert.strictEqual(res.headers.get("location"), "https://github.com/a/b/c?x=1"); + assert.strictEqual(res.headers.get("Referrer-Policy"), "no-referrer"); }); it("should use a meta refresh when the referer is another site", async () => { -- cgit v1.3.1