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
15 lines
783 B
Swift
15 lines
783 B
Swift
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
@Suite struct CameraControllerErrorTests {
|
|
@Test func errorDescriptionsAreStable() {
|
|
#expect(CameraController.CameraError.cameraUnavailable.errorDescription == "Camera unavailable")
|
|
#expect(CameraController.CameraError.microphoneUnavailable.errorDescription == "Microphone unavailable")
|
|
#expect(CameraController.CameraError.permissionDenied(kind: "Camera")
|
|
.errorDescription == "Camera permission denied")
|
|
#expect(CameraController.CameraError.invalidParams("bad").errorDescription == "bad")
|
|
#expect(CameraController.CameraError.captureFailed("nope").errorDescription == "nope")
|
|
#expect(CameraController.CameraError.exportFailed("export").errorDescription == "export")
|
|
}
|
|
}
|