test: tighten model discovery compat assertions · openclaw/openclaw@06be0cf
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,9 +17,8 @@ describe("pi-model-discovery module compatibility", () => {
|
17 | 17 | }; |
18 | 18 | }); |
19 | 19 | |
20 | | -await expect(import("./pi-model-discovery.js")).resolves.toMatchObject({ |
21 | | -discoverAuthStorage: expect.any(Function), |
22 | | -discoverModels: expect.any(Function), |
23 | | -}); |
| 20 | +const module = await import("./pi-model-discovery.js"); |
| 21 | +expect(typeof module.discoverAuthStorage).toBe("function"); |
| 22 | +expect(typeof module.discoverModels).toBe("function"); |
24 | 23 | }); |
25 | 24 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。