mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-28 10:22:32 +00:00
style: normalize test and sdk formatting
This commit is contained in:
@@ -1,4 +1 @@
|
||||
export {
|
||||
getMemorySearchManager,
|
||||
MemoryIndexManager,
|
||||
} from "./src/memory/index.js";
|
||||
export { getMemorySearchManager, MemoryIndexManager } from "./src/memory/index.js";
|
||||
|
||||
@@ -35,18 +35,18 @@ vi.mock("../../../../extensions/zalouser/test-api.js", async (importOriginal) =>
|
||||
await importOriginal<typeof import("../../../../extensions/zalouser/test-api.js")>();
|
||||
return {
|
||||
...actual,
|
||||
listZalouserAccountIds: vi.fn(() => ["default"]),
|
||||
resolveDefaultZalouserAccountId: vi.fn(() => "default"),
|
||||
resolveZalouserAccountSync: vi.fn(() => ({
|
||||
accountId: "default",
|
||||
profile: "default",
|
||||
name: "test",
|
||||
enabled: true,
|
||||
authenticated: true,
|
||||
config: {},
|
||||
})),
|
||||
getZcaUserInfo: vi.fn(async () => null),
|
||||
checkZcaAuthenticated: vi.fn(async () => false),
|
||||
listZalouserAccountIds: vi.fn(() => ["default"]),
|
||||
resolveDefaultZalouserAccountId: vi.fn(() => "default"),
|
||||
resolveZalouserAccountSync: vi.fn(() => ({
|
||||
accountId: "default",
|
||||
profile: "default",
|
||||
name: "test",
|
||||
enabled: true,
|
||||
authenticated: true,
|
||||
config: {},
|
||||
})),
|
||||
getZcaUserInfo: vi.fn(async () => null),
|
||||
checkZcaAuthenticated: vi.fn(async () => false),
|
||||
checkZaloAuthenticated: vi.fn(async () => false),
|
||||
getZaloUserInfo: vi.fn(async () => null),
|
||||
listZaloFriendsMatching: vi.fn(async () => []),
|
||||
|
||||
@@ -7,8 +7,8 @@ import cloudflareAiGatewayPlugin from "../../extensions/cloudflare-ai-gateway/in
|
||||
import googlePlugin from "../../extensions/google/index.js";
|
||||
import huggingfacePlugin from "../../extensions/huggingface/index.js";
|
||||
import kimiCodingPlugin from "../../extensions/kimi-coding/index.js";
|
||||
import minimaxPlugin from "../../extensions/minimax/index.js";
|
||||
import litellmPlugin from "../../extensions/litellm/index.js";
|
||||
import minimaxPlugin from "../../extensions/minimax/index.js";
|
||||
import mistralPlugin from "../../extensions/mistral/index.js";
|
||||
import moonshotPlugin from "../../extensions/moonshot/index.js";
|
||||
import ollamaPlugin from "../../extensions/ollama/index.js";
|
||||
|
||||
@@ -17,10 +17,7 @@ export {
|
||||
SELF_HOSTED_DEFAULT_COST,
|
||||
SELF_HOSTED_DEFAULT_MAX_TOKENS,
|
||||
} from "../plugins/provider-self-hosted-setup.js";
|
||||
export {
|
||||
OLLAMA_DEFAULT_BASE_URL,
|
||||
OLLAMA_DEFAULT_MODEL,
|
||||
} from "../../extensions/ollama/api.js";
|
||||
export { OLLAMA_DEFAULT_BASE_URL, OLLAMA_DEFAULT_MODEL } from "../../extensions/ollama/api.js";
|
||||
export {
|
||||
buildOllamaProvider,
|
||||
configureOllamaNonInteractive,
|
||||
|
||||
@@ -96,7 +96,7 @@ describe("git-hooks/pre-commit (integration)", () => {
|
||||
"process.exit(0);\n",
|
||||
"utf8",
|
||||
);
|
||||
writeFileSync(path.join(dir, "package.json"), "{\"name\":\"tmp\"}\n", "utf8");
|
||||
writeFileSync(path.join(dir, "package.json"), '{"name":"tmp"}\n', "utf8");
|
||||
writeFileSync(path.join(dir, "pnpm-lock.yaml"), "lockfileVersion: '9.0'\n", "utf8");
|
||||
|
||||
const fakeBinDir = path.join(dir, "bin");
|
||||
|
||||
Reference in New Issue
Block a user