mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-23 15:19:36 +00:00
test: dedupe ssrf dispatcher mock read
This commit is contained in:
@@ -73,8 +73,8 @@ function createDispatcherWithPinnedOverride(lookup: PinnedHostname["lookup"]) {
|
||||
},
|
||||
});
|
||||
|
||||
return (agentCtor.mock.calls.at(-1)?.[0] as { connect?: { lookup?: PinnedHostname["lookup"] } })
|
||||
?.connect?.lookup;
|
||||
const call = agentCtor.mock.calls[agentCtor.mock.calls.length - 1];
|
||||
return (call?.[0] as { connect?: { lookup?: PinnedHostname["lookup"] } })?.connect?.lookup;
|
||||
}
|
||||
|
||||
function requireRecord(value: unknown, label: string): Record<string, unknown> {
|
||||
|
||||
Reference in New Issue
Block a user