mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 14:30:46 +00:00
test: isolate system prompt config assertions
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import {
|
||||
buildConfiguredAgentSystemPrompt,
|
||||
resolveAgentSystemPromptConfig,
|
||||
} from "./system-prompt-config.js";
|
||||
|
||||
vi.mock("../tts/tts.js", () => ({
|
||||
buildTtsSystemPromptHint: vi.fn(() => undefined),
|
||||
}));
|
||||
|
||||
describe("resolveAgentSystemPromptConfig", () => {
|
||||
it("defaults sub-agent delegation mode to suggest", () => {
|
||||
expect(resolveAgentSystemPromptConfig({ config: {} }).subagentDelegationMode).toBe("suggest");
|
||||
|
||||
Reference in New Issue
Block a user