Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. π₯
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update judge.test.ts
Developers Digest70096377c59f
diff --git a/apps/api/src/services/monitoring/search/judge.test.ts b/apps/api/src/services/monitoring/search/judge.test.tsindex a4554da88..b7dce3e4f 100644--- a/apps/api/src/services/monitoring/search/judge.test.ts+++ b/apps/api/src/services/monitoring/search/judge.test.ts@@ -42,19 +42,24 @@ describe("dedupe", () => {canonicalizeUrl("https://example.com/path"),);});- it("same title+snippet β same fingerprint (URL-independent)", () => {+ it("same URL β same fingerprint even when title/snippet drift (URL-keyed)", () => {const a = stableSerpFingerprint({url: "https://a.com",title: "T",snippet: "S",});const b = stableSerpFingerprint({- url: "https://b.com",- title: "T",- snippet: "S",+ url: "https://www.A.com/",+ title: "different title",+ snippet: "reworded snippet",});expect(a).toBe(b);});+ it("different URL β different fingerprint", () => {+ const a = stableSerpFingerprint({ url: "https://a.com", title: "T" });+ const b = stableSerpFingerprint({ url: "https://b.com", title: "T" });+ expect(a).not.toBe(b);+ });});describe("verdict defenses", () => {