mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 16:51:44 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
setConfigOverride,
|
||||
unsetConfigOverride,
|
||||
} from "./runtime-overrides.js";
|
||||
import type { ClawdbotConfig } from "./types.js";
|
||||
import type { MoltbotConfig } from "./types.js";
|
||||
|
||||
describe("runtime overrides", () => {
|
||||
beforeEach(() => {
|
||||
@@ -15,8 +15,8 @@ describe("runtime overrides", () => {
|
||||
|
||||
it("sets and applies nested overrides", () => {
|
||||
const cfg = {
|
||||
messages: { responsePrefix: "[clawdbot]" },
|
||||
} as ClawdbotConfig;
|
||||
messages: { responsePrefix: "[moltbot]" },
|
||||
} as MoltbotConfig;
|
||||
setConfigOverride("messages.responsePrefix", "[debug]");
|
||||
const next = applyConfigOverrides(cfg);
|
||||
expect(next.messages?.responsePrefix).toBe("[debug]");
|
||||
@@ -25,7 +25,7 @@ describe("runtime overrides", () => {
|
||||
it("merges object overrides without clobbering siblings", () => {
|
||||
const cfg = {
|
||||
channels: { whatsapp: { dmPolicy: "pairing", allowFrom: ["+1"] } },
|
||||
} as ClawdbotConfig;
|
||||
} as MoltbotConfig;
|
||||
setConfigOverride("channels.whatsapp.dmPolicy", "open");
|
||||
const next = applyConfigOverrides(cfg);
|
||||
expect(next.channels?.whatsapp?.dmPolicy).toBe("open");
|
||||
|
||||
Reference in New Issue
Block a user