From 290243725149a7260c86c10ca85bb142bc3ce446 Mon Sep 17 00:00:00 2001 From: "t3-code[bot]" <269035359+t3-code[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 06:25:33 +0000 Subject: [PATCH] test(web): remove redundant favicon test --- apps/web/src/lib/favicon.test.ts | 42 -------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 apps/web/src/lib/favicon.test.ts diff --git a/apps/web/src/lib/favicon.test.ts b/apps/web/src/lib/favicon.test.ts deleted file mode 100644 index 8fe9e65eb4d2..000000000000 --- a/apps/web/src/lib/favicon.test.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { describe, expect, it } from "vite-plus/test"; - -import { faviconUrlForOrigin } from "./favicon"; - -describe("faviconUrlForOrigin", () => { - it("never sends private origin hostnames to the public provider", () => { - for (const url of [ - "http://localhost:3000/", - "http://127.0.0.1:3000/", - "http://0.0.0.0:3000/", - "http://devbox:3000/", - "https://24x.xf.local/", - "http://printer.home.arpa/", - "http://192.168.1.20:3000/", - "http://[::]/", - "http://[::ffff:192.168.1.20]/", - "http://100.65.180.100:3000/", - "https://devbox.example.ts.net/", - "http://192.0.2.1/", - "http://198.51.100.1/", - "http://203.0.113.1/", - "http://224.0.0.1/", - "http://240.0.0.1/", - "http://[2001:db8::1]/", - "http://[ff02::1]/", - "http://app.test../", - "https://24x.xf.local../", - "http://printer.home.arpa../", - "https://devbox.example.ts.net../", - "http://127.0.0.1../", - "http://127.1../", - "http://10.1../", - "http://172.16.1../", - "http://192.168.1../", - ]) { - expect(faviconUrlForOrigin(url)).toBeNull(); - } - expect(faviconUrlForOrigin("https://example.com/path", 32)).toBe( - "https://www.google.com/s2/favicons?domain=example.com&sz=32", - ); - }); -});