test: clarify onboard search notes · openclaw/openclaw@7adadbd
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -190,7 +190,9 @@ describe("onboard-search provider resolution", () => {
|
190 | 190 | provider: "default", |
191 | 191 | id: "CUSTOM_SEARCH_API_KEY", |
192 | 192 | }); |
193 | | -expect(notes.some((note) => note.message.includes("CUSTOM_SEARCH_API_KEY"))).toBe(true); |
| 193 | +expect(notes.map((note) => note.message)).toEqual( |
| 194 | +expect.arrayContaining([expect.stringContaining("CUSTOM_SEARCH_API_KEY")]), |
| 195 | +); |
194 | 196 | }); |
195 | 197 | |
196 | 198 | it("does not treat hard-disabled bundled providers as selectable credentials", () => { |
@@ -249,7 +251,9 @@ describe("onboard-search provider resolution", () => {
|
249 | 251 | |
250 | 252 | expect(result.tools?.web?.search?.provider).toBe("duckduckgo"); |
251 | 253 | expect(result.plugins?.entries?.duckduckgo?.enabled).toBe(true); |
252 | | -expect(notes.some((message) => message.includes("works without an API key"))).toBe(true); |
| 254 | +expect(notes).toEqual( |
| 255 | +expect.arrayContaining([expect.stringContaining("works without an API key")]), |
| 256 | +); |
253 | 257 | }); |
254 | 258 | |
255 | 259 | it("uses the runtime onboarding search surface when no config is present", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。