test: tighten searxng empty result assertion

This commit is contained in:
Shakker
2026-05-11 08:22:05 +01:00
parent c7f7cd6e5e
commit be8bf3585e

View File

@@ -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: [],
});
});