mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:14:33 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -52,16 +52,16 @@ describe("resolveResponsePrefixTemplate", () => {
|
||||
|
||||
it("resolves {identity.name} variable", () => {
|
||||
const result = resolveResponsePrefixTemplate("[{identity.name}]", {
|
||||
identityName: "Moltbot",
|
||||
identityName: "OpenClaw",
|
||||
});
|
||||
expect(result).toBe("[Moltbot]");
|
||||
expect(result).toBe("[OpenClaw]");
|
||||
});
|
||||
|
||||
it("resolves {identityName} as alias", () => {
|
||||
const result = resolveResponsePrefixTemplate("[{identityName}]", {
|
||||
identityName: "Moltbot",
|
||||
identityName: "OpenClaw",
|
||||
});
|
||||
expect(result).toBe("[Moltbot]");
|
||||
expect(result).toBe("[OpenClaw]");
|
||||
});
|
||||
|
||||
it("resolves multiple variables", () => {
|
||||
@@ -104,13 +104,13 @@ describe("resolveResponsePrefixTemplate", () => {
|
||||
const result = resolveResponsePrefixTemplate(
|
||||
"[{identity.name}] {provider}/{model} (think:{thinkingLevel})",
|
||||
{
|
||||
identityName: "Moltbot",
|
||||
identityName: "OpenClaw",
|
||||
provider: "anthropic",
|
||||
model: "claude-opus-4-5",
|
||||
thinkingLevel: "high",
|
||||
},
|
||||
);
|
||||
expect(result).toBe("[Moltbot] anthropic/claude-opus-4-5 (think:high)");
|
||||
expect(result).toBe("[OpenClaw] anthropic/claude-opus-4-5 (think:high)");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user