test: avoid volatile model availability assertions · openclaw/openclaw@fabfab2
steipete
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -572,10 +572,9 @@ describe("modelsListCommand forward-compat", () => {
|
572 | 572 | expect(mocks.loadModelRegistry).not.toHaveBeenCalled(); |
573 | 573 | expect(mocks.hasProviderStaticCatalogForFilter).not.toHaveBeenCalled(); |
574 | 574 | expect(mocks.loadProviderCatalogModelsForList).not.toHaveBeenCalled(); |
575 | | -expect(lastPrintedRows<{ key: string; available: boolean }>()).toEqual([ |
| 575 | +expect(lastPrintedRows<{ key: string }>()).toEqual([ |
576 | 576 | expect.objectContaining({ |
577 | 577 | key: "moonshot/kimi-k2.6", |
578 | | -available: true, |
579 | 578 | }), |
580 | 579 | ]); |
581 | 580 | }); |
@@ -673,10 +672,9 @@ describe("modelsListCommand forward-compat", () => {
|
673 | 672 | expect(mocks.loadModelRegistry).not.toHaveBeenCalled(); |
674 | 673 | expect(mocks.hasProviderStaticCatalogForFilter).not.toHaveBeenCalled(); |
675 | 674 | expect(mocks.loadProviderCatalogModelsForList).not.toHaveBeenCalled(); |
676 | | -expect(lastPrintedRows<{ key: string; available: boolean }>()).toEqual([ |
| 675 | +expect(lastPrintedRows<{ key: string }>()).toEqual([ |
677 | 676 | expect.objectContaining({ |
678 | 677 | key: "moonshot/kimi-k2.6", |
679 | | -available: true, |
680 | 678 | }), |
681 | 679 | ]); |
682 | 680 | }); |
@@ -821,10 +819,9 @@ describe("modelsListCommand forward-compat", () => {
|
821 | 819 | loadAvailability: false, |
822 | 820 | }), |
823 | 821 | ); |
824 | | -expect(lastPrintedRows<{ key: string; available: boolean }>()).toEqual([ |
| 822 | +expect(lastPrintedRows<{ key: string }>()).toEqual([ |
825 | 823 | expect.objectContaining({ |
826 | 824 | key: "anthropic/claude-opus-4-7", |
827 | | -available: true, |
828 | 825 | }), |
829 | 826 | ]); |
830 | 827 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。