mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 00:50:22 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -14,7 +14,7 @@ describe("resolveGatewayLaunchAgentLabel", () => {
|
||||
it("returns default label when no profile is set", () => {
|
||||
const result = resolveGatewayLaunchAgentLabel();
|
||||
expect(result).toBe(GATEWAY_LAUNCH_AGENT_LABEL);
|
||||
expect(result).toBe("bot.molt.gateway");
|
||||
expect(result).toBe("ai.openclaw.gateway");
|
||||
});
|
||||
|
||||
it("returns default label when profile is undefined", () => {
|
||||
@@ -34,17 +34,17 @@ describe("resolveGatewayLaunchAgentLabel", () => {
|
||||
|
||||
it("returns profile-specific label when profile is set", () => {
|
||||
const result = resolveGatewayLaunchAgentLabel("dev");
|
||||
expect(result).toBe("bot.molt.dev");
|
||||
expect(result).toBe("ai.openclaw.dev");
|
||||
});
|
||||
|
||||
it("returns profile-specific label for custom profile", () => {
|
||||
const result = resolveGatewayLaunchAgentLabel("work");
|
||||
expect(result).toBe("bot.molt.work");
|
||||
expect(result).toBe("ai.openclaw.work");
|
||||
});
|
||||
|
||||
it("trims whitespace from profile", () => {
|
||||
const result = resolveGatewayLaunchAgentLabel(" staging ");
|
||||
expect(result).toBe("bot.molt.staging");
|
||||
expect(result).toBe("ai.openclaw.staging");
|
||||
});
|
||||
|
||||
it("returns default label for empty string profile", () => {
|
||||
@@ -62,7 +62,7 @@ describe("resolveGatewaySystemdServiceName", () => {
|
||||
it("returns default service name when no profile is set", () => {
|
||||
const result = resolveGatewaySystemdServiceName();
|
||||
expect(result).toBe(GATEWAY_SYSTEMD_SERVICE_NAME);
|
||||
expect(result).toBe("moltbot-gateway");
|
||||
expect(result).toBe("openclaw-gateway");
|
||||
});
|
||||
|
||||
it("returns default service name when profile is undefined", () => {
|
||||
@@ -82,17 +82,17 @@ describe("resolveGatewaySystemdServiceName", () => {
|
||||
|
||||
it("returns profile-specific service name when profile is set", () => {
|
||||
const result = resolveGatewaySystemdServiceName("dev");
|
||||
expect(result).toBe("moltbot-gateway-dev");
|
||||
expect(result).toBe("openclaw-gateway-dev");
|
||||
});
|
||||
|
||||
it("returns profile-specific service name for custom profile", () => {
|
||||
const result = resolveGatewaySystemdServiceName("production");
|
||||
expect(result).toBe("moltbot-gateway-production");
|
||||
expect(result).toBe("openclaw-gateway-production");
|
||||
});
|
||||
|
||||
it("trims whitespace from profile", () => {
|
||||
const result = resolveGatewaySystemdServiceName(" test ");
|
||||
expect(result).toBe("moltbot-gateway-test");
|
||||
expect(result).toBe("openclaw-gateway-test");
|
||||
});
|
||||
|
||||
it("returns default service name for empty string profile", () => {
|
||||
@@ -110,7 +110,7 @@ describe("resolveGatewayWindowsTaskName", () => {
|
||||
it("returns default task name when no profile is set", () => {
|
||||
const result = resolveGatewayWindowsTaskName();
|
||||
expect(result).toBe(GATEWAY_WINDOWS_TASK_NAME);
|
||||
expect(result).toBe("Moltbot Gateway");
|
||||
expect(result).toBe("OpenClaw Gateway");
|
||||
});
|
||||
|
||||
it("returns default task name when profile is undefined", () => {
|
||||
@@ -130,17 +130,17 @@ describe("resolveGatewayWindowsTaskName", () => {
|
||||
|
||||
it("returns profile-specific task name when profile is set", () => {
|
||||
const result = resolveGatewayWindowsTaskName("dev");
|
||||
expect(result).toBe("Moltbot Gateway (dev)");
|
||||
expect(result).toBe("OpenClaw Gateway (dev)");
|
||||
});
|
||||
|
||||
it("returns profile-specific task name for custom profile", () => {
|
||||
const result = resolveGatewayWindowsTaskName("work");
|
||||
expect(result).toBe("Moltbot Gateway (work)");
|
||||
expect(result).toBe("OpenClaw Gateway (work)");
|
||||
});
|
||||
|
||||
it("trims whitespace from profile", () => {
|
||||
const result = resolveGatewayWindowsTaskName(" ci ");
|
||||
expect(result).toBe("Moltbot Gateway (ci)");
|
||||
expect(result).toBe("OpenClaw Gateway (ci)");
|
||||
});
|
||||
|
||||
it("returns default task name for empty string profile", () => {
|
||||
@@ -175,24 +175,24 @@ describe("resolveGatewayProfileSuffix", () => {
|
||||
|
||||
describe("formatGatewayServiceDescription", () => {
|
||||
it("returns default description when no profile/version", () => {
|
||||
expect(formatGatewayServiceDescription()).toBe("Moltbot Gateway");
|
||||
expect(formatGatewayServiceDescription()).toBe("OpenClaw Gateway");
|
||||
});
|
||||
|
||||
it("includes profile when set", () => {
|
||||
expect(formatGatewayServiceDescription({ profile: "work" })).toBe(
|
||||
"Moltbot Gateway (profile: work)",
|
||||
"OpenClaw Gateway (profile: work)",
|
||||
);
|
||||
});
|
||||
|
||||
it("includes version when set", () => {
|
||||
expect(formatGatewayServiceDescription({ version: "2026.1.10" })).toBe(
|
||||
"Moltbot Gateway (v2026.1.10)",
|
||||
"OpenClaw Gateway (v2026.1.10)",
|
||||
);
|
||||
});
|
||||
|
||||
it("includes profile and version when set", () => {
|
||||
expect(formatGatewayServiceDescription({ profile: "dev", version: "1.2.3" })).toBe(
|
||||
"Moltbot Gateway (profile: dev, v1.2.3)",
|
||||
"OpenClaw Gateway (profile: dev, v1.2.3)",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user