test: tighten model auth marker assertion · openclaw/openclaw@17bbd18
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -74,15 +74,12 @@ describe("model auth markers", () => {
|
74 | 74 | }); |
75 | 75 | |
76 | 76 | it("reads bundled plugin-owned non-secret markers from manifests", () => { |
77 | | -expect(listKnownNonSecretApiKeyMarkers()).toEqual( |
78 | | -expect.arrayContaining([ |
79 | | -"codex-app-server", |
80 | | -"gcp-vertex-credentials", |
81 | | -"lmstudio-local", |
82 | | -"minimax-oauth", |
83 | | -"ollama-local", |
84 | | -]), |
85 | | -); |
| 77 | +const markers = new Set(listKnownNonSecretApiKeyMarkers()); |
| 78 | +expect(markers.has("codex-app-server")).toBe(true); |
| 79 | +expect(markers.has("gcp-vertex-credentials")).toBe(true); |
| 80 | +expect(markers.has("lmstudio-local")).toBe(true); |
| 81 | +expect(markers.has("minimax-oauth")).toBe(true); |
| 82 | +expect(markers.has("ollama-local")).toBe(true); |
86 | 83 | }); |
87 | 84 | |
88 | 85 | it("does not treat removed provider markers as active auth markers", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。