test: reuse minimax vlm import · openclaw/openclaw@8fd9c8e
shakkernerd
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { afterEach, beforeAll, describe, expect, it, vi } from "vitest"; |
| 1 | +import { afterEach, describe, expect, it, vi } from "vitest"; |
2 | 2 | import { withFetchPreconnect } from "../test-utils/fetch-mock.js"; |
3 | | - |
4 | | -let isMinimaxVlmModel: typeof import("./minimax-vlm.js").isMinimaxVlmModel; |
5 | | -let minimaxUnderstandImage: typeof import("./minimax-vlm.js").minimaxUnderstandImage; |
6 | | - |
7 | | -beforeAll(async () => { |
8 | | -({ isMinimaxVlmModel, minimaxUnderstandImage } = await import("./minimax-vlm.js")); |
9 | | -}); |
| 3 | +import { isMinimaxVlmModel, minimaxUnderstandImage } from "./minimax-vlm.js"; |
10 | 4 | |
11 | 5 | describe("minimaxUnderstandImage apiKey normalization", () => { |
12 | 6 | const priorFetch = global.fetch; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。