mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 18:41:24 +00:00
test: drop redundant daemon profile normalization wrappers
This commit is contained in:
@@ -199,18 +199,4 @@ describe("resolveLaunchAgentPlistPath", () => {
|
||||
"/Users/test/Library/LaunchAgents/ai.openclaw.myprofile.plist",
|
||||
);
|
||||
});
|
||||
|
||||
it("handles case-insensitive 'Default' profile", () => {
|
||||
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: "Default" };
|
||||
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
||||
"/Users/test/Library/LaunchAgents/ai.openclaw.gateway.plist",
|
||||
);
|
||||
});
|
||||
|
||||
it("trims whitespace from OPENCLAW_PROFILE", () => {
|
||||
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: " myprofile " };
|
||||
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
||||
"/Users/test/Library/LaunchAgents/ai.openclaw.myprofile.plist",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -58,20 +58,6 @@ describe("resolveTaskScriptPath", () => {
|
||||
expect(resolveTaskScriptPath(env)).toBe(path.join("C:\\State\\openclaw", "gateway.cmd"));
|
||||
});
|
||||
|
||||
it("handles case-insensitive 'Default' profile", () => {
|
||||
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: "Default" };
|
||||
expect(resolveTaskScriptPath(env)).toBe(
|
||||
path.join("C:\\Users\\test", ".openclaw", "gateway.cmd"),
|
||||
);
|
||||
});
|
||||
|
||||
it("trims whitespace from OPENCLAW_PROFILE", () => {
|
||||
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: " myprofile " };
|
||||
expect(resolveTaskScriptPath(env)).toBe(
|
||||
path.join("C:\\Users\\test", ".openclaw-myprofile", "gateway.cmd"),
|
||||
);
|
||||
});
|
||||
|
||||
it("falls back to HOME when USERPROFILE is not set", () => {
|
||||
const env = { HOME: "/home/test", OPENCLAW_PROFILE: "default" };
|
||||
expect(resolveTaskScriptPath(env)).toBe(path.join("/home/test", ".openclaw", "gateway.cmd"));
|
||||
|
||||
@@ -103,20 +103,6 @@ describe("resolveSystemdUserUnitPath", () => {
|
||||
"/home/test/.config/systemd/user/custom-unit.service",
|
||||
);
|
||||
});
|
||||
|
||||
it("handles case-insensitive 'Default' profile", () => {
|
||||
const env = { HOME: "/home/test", OPENCLAW_PROFILE: "Default" };
|
||||
expect(resolveSystemdUserUnitPath(env)).toBe(
|
||||
"/home/test/.config/systemd/user/openclaw-gateway.service",
|
||||
);
|
||||
});
|
||||
|
||||
it("trims whitespace from OPENCLAW_PROFILE", () => {
|
||||
const env = { HOME: "/home/test", OPENCLAW_PROFILE: " myprofile " };
|
||||
expect(resolveSystemdUserUnitPath(env)).toBe(
|
||||
"/home/test/.config/systemd/user/openclaw-gateway-myprofile.service",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("splitArgsPreservingQuotes", () => {
|
||||
|
||||
Reference in New Issue
Block a user