




























@@ -17,26 +17,24 @@ describe("volcengine plugin", () => {
1717entries: [],
1818} as never);
191920-expect(entries).toContainEqual(
21-expect.objectContaining({
20+expect(entries).toEqual([
21+...DOUBAO_MODEL_CATALOG.map((entry) => ({
2222provider: "volcengine",
23-id: DOUBAO_MODEL_CATALOG[0].id,
24-name: DOUBAO_MODEL_CATALOG[0].name,
25-reasoning: DOUBAO_MODEL_CATALOG[0].reasoning,
26-input: [...DOUBAO_MODEL_CATALOG[0].input],
27-contextWindow: DOUBAO_MODEL_CATALOG[0].contextWindow,
28-}),
29-);
30-expect(entries).toContainEqual(
31-expect.objectContaining({
23+id: entry.id,
24+name: entry.name,
25+reasoning: entry.reasoning,
26+input: [...entry.input],
27+contextWindow: entry.contextWindow,
28+})),
29+ ...DOUBAO_CODING_MODEL_CATALOG.map((entry) => ({
3230provider: "volcengine-plan",
33-id: DOUBAO_CODING_MODEL_CATALOG[0].id,
34-name: DOUBAO_CODING_MODEL_CATALOG[0].name,
35-reasoning: DOUBAO_CODING_MODEL_CATALOG[0].reasoning,
36-input: [...DOUBAO_CODING_MODEL_CATALOG[0].input],
37-contextWindow: DOUBAO_CODING_MODEL_CATALOG[0].contextWindow,
38-}),
39-);
31+id: entry.id,
32+name: entry.name,
33+reasoning: entry.reasoning,
34+input: [...entry.input],
35+contextWindow: entry.contextWindow,
36+})),
37+]);
4038});
41394240it("declares its coding provider auth alias in the manifest", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。