From 72639f270c8c2b4a05a2f03d689a5db401f5c450 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 12 Jan 2026 11:33:36 -0500 Subject: [PATCH] spec fix --- .../services/phishing-data.service.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/browser/src/dirt/phishing-detection/services/phishing-data.service.spec.ts b/apps/browser/src/dirt/phishing-detection/services/phishing-data.service.spec.ts index 30aa947092d..e3fbe74d9de 100644 --- a/apps/browser/src/dirt/phishing-detection/services/phishing-data.service.spec.ts +++ b/apps/browser/src/dirt/phishing-detection/services/phishing-data.service.spec.ts @@ -113,7 +113,7 @@ describe("PhishingDataService", () => { expect(result!.applicationVersion).toBe("2.0.0"); }); - it("only updates timestamp if checksum matches", async () => { + it("returns null if checksum matches to skip state update", async () => { const prev: PhishingData = { webAddresses: ["a.com"], timestamp: Date.now() - 60000, @@ -122,9 +122,7 @@ describe("PhishingDataService", () => { }; fetchChecksumSpy.mockResolvedValue("abc"); const result = await service.getNextWebAddresses(prev); - expect(result!.webAddresses).toEqual(prev.webAddresses); - expect(result!.checksum).toBe("abc"); - expect(result!.timestamp).not.toBe(prev.timestamp); + expect(result).toBeNull(); }); it("patches daily domains if cache is fresh", async () => {