mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 18:34:18 +00:00
test: tighten searxng empty result assertion
This commit is contained in:
@@ -133,9 +133,18 @@ describe("searxng client", () => {
|
||||
});
|
||||
|
||||
expect(endpointMockState.calls).toHaveLength(1);
|
||||
expect(result).toMatchObject({
|
||||
const { tookMs, ...stableResult } = result;
|
||||
expect(typeof tookMs).toBe("number");
|
||||
expect(stableResult).toEqual({
|
||||
query: "openclaw",
|
||||
provider: "searxng",
|
||||
count: 0,
|
||||
externalContent: {
|
||||
provider: "searxng",
|
||||
source: "web_search",
|
||||
untrusted: true,
|
||||
wrapped: true,
|
||||
},
|
||||
results: [],
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user