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 | b9fb8851bb869a27048e02a51b28ef3aaffdd471 (patch) | |
| tree | f5a7fe469f83dc0bb0a745e6e3db14b12918d2f4 /src/app.test.ts | |
| parent | a52481a3884447f94aad2d97e0407112c818a32d (diff) | |
Clean up renderer, redirects, and build commit
Diffstat (limited to 'src/app.test.ts')
| -rw-r--r-- | src/app.test.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/app.test.ts b/src/app.test.ts index 8519d91..274b2d5 100644 --- a/src/app.test.ts +++ b/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 () => { |
