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
742 B
Swift
20 lines
742 B
Swift
import Foundation
|
|
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
struct LaunchAgentManagerTests {
|
|
@Test func `launch at login plist does not keep app alive after manual quit`() throws {
|
|
let plist = LaunchAgentManager.plistContents(bundlePath: "/Applications/Hanzo Bot.app")
|
|
let data = try #require(plist.data(using: .utf8))
|
|
let object = try #require(
|
|
PropertyListSerialization.propertyList(from: data, format: nil) as? [String: Any]
|
|
)
|
|
|
|
#expect(object["RunAtLoad"] as? Bool == true)
|
|
#expect(object["KeepAlive"] == nil)
|
|
|
|
let args = try #require(object["ProgramArguments"] as? [String])
|
|
#expect(args == ["/Applications/Hanzo Bot.app/Contents/MacOS/Hanzo Bot"])
|
|
}
|
|
}
|