mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 05:40:22 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -4,9 +4,9 @@ import { parseSystemdExecStart } from "./systemd-unit.js";
|
||||
|
||||
describe("parseSystemdExecStart", () => {
|
||||
it("splits on whitespace outside quotes", () => {
|
||||
const execStart = "/usr/bin/moltbot gateway start --foo bar";
|
||||
const execStart = "/usr/bin/openclaw gateway start --foo bar";
|
||||
expect(parseSystemdExecStart(execStart)).toEqual([
|
||||
"/usr/bin/moltbot",
|
||||
"/usr/bin/openclaw",
|
||||
"gateway",
|
||||
"start",
|
||||
"--foo",
|
||||
@@ -15,9 +15,9 @@ describe("parseSystemdExecStart", () => {
|
||||
});
|
||||
|
||||
it("preserves quoted arguments", () => {
|
||||
const execStart = '/usr/bin/moltbot gateway start --name "My Bot"';
|
||||
const execStart = '/usr/bin/openclaw gateway start --name "My Bot"';
|
||||
expect(parseSystemdExecStart(execStart)).toEqual([
|
||||
"/usr/bin/moltbot",
|
||||
"/usr/bin/openclaw",
|
||||
"gateway",
|
||||
"start",
|
||||
"--name",
|
||||
@@ -26,13 +26,13 @@ describe("parseSystemdExecStart", () => {
|
||||
});
|
||||
|
||||
it("parses path arguments", () => {
|
||||
const execStart = "/usr/bin/moltbot gateway start --path /tmp/moltbot";
|
||||
const execStart = "/usr/bin/openclaw gateway start --path /tmp/openclaw";
|
||||
expect(parseSystemdExecStart(execStart)).toEqual([
|
||||
"/usr/bin/moltbot",
|
||||
"/usr/bin/openclaw",
|
||||
"gateway",
|
||||
"start",
|
||||
"--path",
|
||||
"/tmp/moltbot",
|
||||
"/tmp/openclaw",
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user