test: guard mantle fetch assertion · openclaw/openclaw@b1a9870
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
File tree
extensions/amazon-bedrock-mantle
| Original file line number | Diff line number | Diff line change |
|---|
@@ -544,7 +544,9 @@ describe("bedrock mantle discovery", () => {
|
544 | 544 | |
545 | 545 | expect(provider?.baseUrl).toBe("https://bedrock-mantle.us-east-1.api.aws/v1"); |
546 | 546 | expect(mockFetch.mock.calls[0]?.[0]).toBe("https://bedrock-mantle.us-east-1.api.aws/v1/models"); |
547 | | -expect(mockFetch.mock.calls[0]?.[1]).toBeDefined(); |
| 547 | +if (mockFetch.mock.calls[0]?.[1] === undefined) { |
| 548 | +throw new Error("expected Mantle models fetch init"); |
| 549 | +} |
548 | 550 | }); |
549 | 551 | |
550 | 552 | // --------------------------------------------------------------------------- |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。