fix: land macos resource bundle guard (#473) — thanks @gupsammy

This commit is contained in:
Peter Steinberger
2026-01-08 19:24:01 +00:00
parent 29e9a574b0
commit f1bc178141
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import ClawdbotKit
import Foundation
import Testing
@Suite struct ToolDisplayRegistryTests {
@Test func loadsToolDisplayConfigFromBundle() {
let url = ClawdbotKitResources.bundle.url(forResource: "tool-display", withExtension: "json")
#expect(url != nil)
}
@Test func resolvesKnownToolFromConfig() {
let summary = ToolDisplayRegistry.resolve(name: "bash", args: nil)
#expect(summary.emoji == "🛠️")
#expect(summary.title == "Bash")
}
}