mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 18:24:47 +00:00
test: guard ssrf dispatcher mock call
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user