mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 23:18:28 +00:00
test: remove duplicate uppercase default profile daemon cases
This commit is contained in:
@@ -214,13 +214,6 @@ describe("resolveLaunchAgentPlistPath", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
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", () => {
|
it("trims whitespace from OPENCLAW_PROFILE", () => {
|
||||||
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: " myprofile " };
|
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: " myprofile " };
|
||||||
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
||||||
|
|||||||
@@ -72,13 +72,6 @@ describe("resolveTaskScriptPath", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
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", () => {
|
it("trims whitespace from OPENCLAW_PROFILE", () => {
|
||||||
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: " myprofile " };
|
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: " myprofile " };
|
||||||
expect(resolveTaskScriptPath(env)).toBe(
|
expect(resolveTaskScriptPath(env)).toBe(
|
||||||
|
|||||||
Reference in New Issue
Block a user