mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
20 lines
717 B
Swift
20 lines
717 B
Swift
import Foundation
|
|
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
@Suite(.serialized) struct NodeServiceManagerTests {
|
|
@Test func `builds node service commands with current CLI shape`() throws {
|
|
let tmp = try makeTempDirForTests()
|
|
CommandResolver.setProjectRoot(tmp.path)
|
|
|
|
let openclawPath = tmp.appendingPathComponent("node_modules/.bin/openclaw")
|
|
try makeExecutableForTests(at: openclawPath)
|
|
|
|
let start = NodeServiceManager._testServiceCommand(["start"])
|
|
#expect(start == [openclawPath.path, "node", "start", "--json"])
|
|
|
|
let stop = NodeServiceManager._testServiceCommand(["stop"])
|
|
#expect(stop == [openclawPath.path, "node", "stop", "--json"])
|
|
}
|
|
}
|