mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:41:36 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -147,21 +147,21 @@ describe("commands registry", () => {
|
||||
});
|
||||
|
||||
it("normalizes telegram-style command mentions for the current bot", () => {
|
||||
expect(normalizeCommandBody("/help@moltbot", { botUsername: "moltbot" })).toBe("/help");
|
||||
expect(normalizeCommandBody("/help@openclaw", { botUsername: "openclaw" })).toBe("/help");
|
||||
expect(
|
||||
normalizeCommandBody("/help@moltbot args", {
|
||||
botUsername: "moltbot",
|
||||
normalizeCommandBody("/help@openclaw args", {
|
||||
botUsername: "openclaw",
|
||||
}),
|
||||
).toBe("/help args");
|
||||
expect(
|
||||
normalizeCommandBody("/help@moltbot: args", {
|
||||
botUsername: "moltbot",
|
||||
normalizeCommandBody("/help@openclaw: args", {
|
||||
botUsername: "openclaw",
|
||||
}),
|
||||
).toBe("/help args");
|
||||
});
|
||||
|
||||
it("keeps telegram-style command mentions for other bots", () => {
|
||||
expect(normalizeCommandBody("/help@otherbot", { botUsername: "moltbot" })).toBe(
|
||||
expect(normalizeCommandBody("/help@otherbot", { botUsername: "openclaw" })).toBe(
|
||||
"/help@otherbot",
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user