test: remove duplicate lowercase default profile daemon path cases
This commit is contained in:
@@ -154,13 +154,6 @@ describe("launchd install", () => {
|
||||
});
|
||||
|
||||
describe("resolveLaunchAgentPlistPath", () => {
|
||||
it("uses default label when OPENCLAW_PROFILE is default", () => {
|
||||
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: "default" };
|
||||
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
||||
"/Users/test/Library/LaunchAgents/ai.openclaw.gateway.plist",
|
||||
);
|
||||
});
|
||||
|
||||
it("uses default label when OPENCLAW_PROFILE is unset", () => {
|
||||
const env = { HOME: "/Users/test" };
|
||||
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
||||
|
||||
@@ -35,13 +35,6 @@ describe("schtasks runtime parsing", () => {
|
||||
});
|
||||
|
||||
describe("resolveTaskScriptPath", () => {
|
||||
it("uses default path when OPENCLAW_PROFILE is default", () => {
|
||||
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: "default" };
|
||||
expect(resolveTaskScriptPath(env)).toBe(
|
||||
path.join("C:\\Users\\test", ".openclaw", "gateway.cmd"),
|
||||
);
|
||||
});
|
||||
|
||||
it("uses default path when OPENCLAW_PROFILE is unset", () => {
|
||||
const env = { USERPROFILE: "C:\\Users\\test" };
|
||||
expect(resolveTaskScriptPath(env)).toBe(
|
||||
|
||||
@@ -59,13 +59,6 @@ describe("systemd runtime parsing", () => {
|
||||
});
|
||||
|
||||
describe("resolveSystemdUserUnitPath", () => {
|
||||
it("uses default service name when OPENCLAW_PROFILE is default", () => {
|
||||
const env = { HOME: "/home/test", OPENCLAW_PROFILE: "default" };
|
||||
expect(resolveSystemdUserUnitPath(env)).toBe(
|
||||
"/home/test/.config/systemd/user/openclaw-gateway.service",
|
||||
);
|
||||
});
|
||||
|
||||
it("uses default service name when OPENCLAW_PROFILE is unset", () => {
|
||||
const env = { HOME: "/home/test" };
|
||||
expect(resolveSystemdUserUnitPath(env)).toBe(
|
||||
|
||||
Reference in New Issue
Block a user