test: tighten searxng empty result assertion · openclaw/openclaw@be8bf35
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -133,9 +133,18 @@ describe("searxng client", () => {
|
133 | 133 | }); |
134 | 134 | |
135 | 135 | expect(endpointMockState.calls).toHaveLength(1); |
136 | | -expect(result).toMatchObject({ |
| 136 | +const { tookMs, ...stableResult } = result; |
| 137 | +expect(typeof tookMs).toBe("number"); |
| 138 | +expect(stableResult).toEqual({ |
| 139 | +query: "openclaw", |
137 | 140 | provider: "searxng", |
138 | 141 | count: 0, |
| 142 | +externalContent: { |
| 143 | +provider: "searxng", |
| 144 | +source: "web_search", |
| 145 | +untrusted: true, |
| 146 | +wrapped: true, |
| 147 | +}, |
139 | 148 | results: [], |
140 | 149 | }); |
141 | 150 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。