diff options
| author | Joe Mou <dev@mou.fo> | 2026-09-03 15:07:25 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-09-03 23:05:33 -0400 |
| commit | 439f783c9e3b18519505d1ad6b8533bea081cca0 (patch) | |
| tree | 6f43005ce4e35d182fc16bc20c4df6a12c5124b9 /cgithub/src/app.test.ts | |
| parent | a61a96c6d72d4297b2539f4033fbfbd0a3d178ab (diff) | |
Clean up renderer, redirects, and build commit
Diffstat (limited to 'cgithub/src/app.test.ts')
| -rw-r--r-- | cgithub/src/app.test.ts | 8 |
1 files changed, 6 insertions, 2 deletions
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\)</); assert.match(html, /href="\/actions\/deploy-pages\/commits\/main\/src">src</); - assert.match(html, /href="\/actions\/deploy-pages\/commits\/main\/src\/lib">lib<\/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, /<meta name="referrer" content="no-referrer">/); assert.match( body, /<meta http-equiv="refresh" content="1; url=https:\/\/github.com\/a\/b\/c\?x=1">/, @@ -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 () => { |
