mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:04:32 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -46,7 +46,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
||||
beforeEach(async () => {
|
||||
resetInboundDedupe();
|
||||
previousHome = process.env.HOME;
|
||||
tempHome = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-web-home-"));
|
||||
tempHome = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-web-home-"));
|
||||
process.env.HOME = tempHome;
|
||||
});
|
||||
|
||||
@@ -61,7 +61,7 @@ afterEach(async () => {
|
||||
const _makeSessionStore = async (
|
||||
entries: Record<string, unknown> = {},
|
||||
): Promise<{ storePath: string; cleanup: () => Promise<void> }> => {
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-session-"));
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-session-"));
|
||||
const storePath = path.join(dir, "sessions.json");
|
||||
await fs.writeFile(storePath, JSON.stringify(entries));
|
||||
const cleanup = async () => {
|
||||
@@ -200,7 +200,7 @@ describe("web auto-reply", () => {
|
||||
expect(resolver).toHaveBeenCalled();
|
||||
const resolverArg = resolver.mock.calls[0][0];
|
||||
expect(resolverArg.Body).toContain("[Richbot]");
|
||||
expect(resolverArg.Body).not.toContain("[clawdbot]");
|
||||
expect(resolverArg.Body).not.toContain("[moltbot]");
|
||||
resetLoadConfigMock();
|
||||
});
|
||||
it("does not derive responsePrefix from identity.name when unset", async () => {
|
||||
|
||||
Reference in New Issue
Block a user