mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 03:52:42 +00:00
test: remove duplicate uppercase default profile case
This commit is contained in:
@@ -118,13 +118,6 @@ describe("resolveSystemdUserUnitPath", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
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", () => {
|
it("trims whitespace from OPENCLAW_PROFILE", () => {
|
||||||
const env = { HOME: "/home/test", OPENCLAW_PROFILE: " myprofile " };
|
const env = { HOME: "/home/test", OPENCLAW_PROFILE: " myprofile " };
|
||||||
expect(resolveSystemdUserUnitPath(env)).toBe(
|
expect(resolveSystemdUserUnitPath(env)).toBe(
|
||||||
|
|||||||
Reference in New Issue
Block a user