From e89d1b25936a16d40770dbd1312993ce57701a85 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 12 May 2026 05:56:05 +0100 Subject: [PATCH] test: guard ssrf dispatcher mock call --- src/infra/net/ssrf.dispatcher.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/infra/net/ssrf.dispatcher.test.ts b/src/infra/net/ssrf.dispatcher.test.ts index 07231bf72dc..001ac72576a 100644 --- a/src/infra/net/ssrf.dispatcher.test.ts +++ b/src/infra/net/ssrf.dispatcher.test.ts @@ -247,9 +247,7 @@ describe("createPinnedDispatcher", () => { const callback = vi.fn(); lookup?.("example.com", callback); - const originalLookupCall = originalLookupMock.mock.calls[0]; - expect(originalLookupCall?.[0]).toBe("example.com"); - expect(typeof originalLookupCall?.[1]).toBe("function"); + expect(originalLookupMock).toHaveBeenCalledWith("example.com", expect.any(Function)); expect(callback).toHaveBeenCalledWith(null, "93.184.216.34", 4); });