mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 20:38:27 +00:00
test: remove duplicate undefined-profile default cases
This commit is contained in:
@@ -18,11 +18,6 @@ describe("resolveGatewayLaunchAgentLabel", () => {
|
|||||||
expect(result).toBe("ai.openclaw.gateway");
|
expect(result).toBe("ai.openclaw.gateway");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns default label when profile is undefined", () => {
|
|
||||||
const result = resolveGatewayLaunchAgentLabel(undefined);
|
|
||||||
expect(result).toBe(GATEWAY_LAUNCH_AGENT_LABEL);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("returns default label when profile is 'default'", () => {
|
it("returns default label when profile is 'default'", () => {
|
||||||
const result = resolveGatewayLaunchAgentLabel("default");
|
const result = resolveGatewayLaunchAgentLabel("default");
|
||||||
expect(result).toBe(GATEWAY_LAUNCH_AGENT_LABEL);
|
expect(result).toBe(GATEWAY_LAUNCH_AGENT_LABEL);
|
||||||
@@ -66,11 +61,6 @@ describe("resolveGatewaySystemdServiceName", () => {
|
|||||||
expect(result).toBe("openclaw-gateway");
|
expect(result).toBe("openclaw-gateway");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns default service name when profile is undefined", () => {
|
|
||||||
const result = resolveGatewaySystemdServiceName(undefined);
|
|
||||||
expect(result).toBe(GATEWAY_SYSTEMD_SERVICE_NAME);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("returns default service name when profile is 'default'", () => {
|
it("returns default service name when profile is 'default'", () => {
|
||||||
const result = resolveGatewaySystemdServiceName("default");
|
const result = resolveGatewaySystemdServiceName("default");
|
||||||
expect(result).toBe(GATEWAY_SYSTEMD_SERVICE_NAME);
|
expect(result).toBe(GATEWAY_SYSTEMD_SERVICE_NAME);
|
||||||
@@ -114,11 +104,6 @@ describe("resolveGatewayWindowsTaskName", () => {
|
|||||||
expect(result).toBe("OpenClaw Gateway");
|
expect(result).toBe("OpenClaw Gateway");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns default task name when profile is undefined", () => {
|
|
||||||
const result = resolveGatewayWindowsTaskName(undefined);
|
|
||||||
expect(result).toBe(GATEWAY_WINDOWS_TASK_NAME);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("returns default task name when profile is 'default'", () => {
|
it("returns default task name when profile is 'default'", () => {
|
||||||
const result = resolveGatewayWindowsTaskName("default");
|
const result = resolveGatewayWindowsTaskName("default");
|
||||||
expect(result).toBe(GATEWAY_WINDOWS_TASK_NAME);
|
expect(result).toBe(GATEWAY_WINDOWS_TASK_NAME);
|
||||||
|
|||||||
Reference in New Issue
Block a user