mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-29 05:02:04 +03:00
refactor: rename to openclaw
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import Foundation
|
||||
import Testing
|
||||
@testable import OpenClaw
|
||||
|
||||
@Suite struct VoiceWakeOverlayTests {
|
||||
@Test func guardTokenDropsWhenNoActive() {
|
||||
let outcome = VoiceWakeOverlayController.evaluateToken(active: nil, incoming: UUID())
|
||||
#expect(outcome == .dropNoActive)
|
||||
}
|
||||
|
||||
@Test func guardTokenAcceptsMatching() {
|
||||
let token = UUID()
|
||||
let outcome = VoiceWakeOverlayController.evaluateToken(active: token, incoming: token)
|
||||
#expect(outcome == .accept)
|
||||
}
|
||||
|
||||
@Test func guardTokenDropsMismatchWithoutDismissing() {
|
||||
let outcome = VoiceWakeOverlayController.evaluateToken(active: UUID(), incoming: UUID())
|
||||
#expect(outcome == .dropMismatch)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user