diff --git a/src/infra/net/ssrf.test.ts b/src/infra/net/ssrf.test.ts index b058e5e34..a093f4155 100644 --- a/src/infra/net/ssrf.test.ts +++ b/src/infra/net/ssrf.test.ts @@ -1,4 +1,5 @@ import { describe, expect, it } from "vitest"; +import { normalizeFingerprint } from "../tls/fingerprint.js"; import { isPrivateIpAddress } from "./ssrf.js"; describe("ssrf ip classification", () => { @@ -30,3 +31,11 @@ describe("ssrf ip classification", () => { expect(isPrivateIpAddress("2001:db8::1")).toBe(false); }); }); + +describe("normalizeFingerprint", () => { + it("strips sha256 prefixes and separators", () => { + expect(normalizeFingerprint("sha256:AA:BB:cc")).toBe("aabbcc"); + expect(normalizeFingerprint("SHA-256 11-22-33")).toBe("112233"); + expect(normalizeFingerprint("aa:bb:cc")).toBe("aabbcc"); + }); +}); diff --git a/src/infra/tls/fingerprint.test.ts b/src/infra/tls/fingerprint.test.ts deleted file mode 100644 index 7e0f99ec6..000000000 --- a/src/infra/tls/fingerprint.test.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { normalizeFingerprint } from "./fingerprint.js"; - -describe("normalizeFingerprint", () => { - it("strips sha256 prefixes and separators", () => { - expect(normalizeFingerprint("sha256:AA:BB:cc")).toBe("aabbcc"); - expect(normalizeFingerprint("SHA-256 11-22-33")).toBe("112233"); - expect(normalizeFingerprint("aa:bb:cc")).toBe("aabbcc"); - }); -});