mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 23:02:02 +03:00
Tests: inline mock classes in vi.mock factory
This commit is contained in:
@@ -47,8 +47,15 @@ vi.mock("../agents/model-auth.js", () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock("@mariozechner/pi-coding-agent", () => ({
|
vi.mock("@mariozechner/pi-coding-agent", () => ({
|
||||||
AuthStorage,
|
AuthStorage: class {},
|
||||||
ModelRegistry,
|
ModelRegistry: class {
|
||||||
|
getAll() {
|
||||||
|
return modelRegistryState.models;
|
||||||
|
}
|
||||||
|
getAvailable() {
|
||||||
|
return modelRegistryState.available;
|
||||||
|
}
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
function makeRuntime() {
|
function makeRuntime() {
|
||||||
|
|||||||
Reference in New Issue
Block a user