mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 13:18:51 +00:00
test: trim reply label generator mock
This commit is contained in:
parent
58d6c16d12
commit
d9af49a7af
1 changed files with 3 additions and 2 deletions
|
|
@ -7,8 +7,9 @@ const resolveDefaultModelForAgent = vi.hoisted(() => vi.fn());
|
|||
const resolveModelAsync = vi.hoisted(() => vi.fn());
|
||||
const prepareModelForSimpleCompletion = vi.hoisted(() => vi.fn());
|
||||
|
||||
vi.mock("@mariozechner/pi-ai", async (importOriginal) => {
|
||||
const original = await importOriginal<typeof import("@mariozechner/pi-ai")>();
|
||||
vi.mock("@mariozechner/pi-ai", async () => {
|
||||
const original =
|
||||
await vi.importActual<typeof import("@mariozechner/pi-ai")>("@mariozechner/pi-ai");
|
||||
return {
|
||||
...original,
|
||||
completeSimple,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue