chore: adiciona .gitignore e commit.command
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import XCTest
|
||||
|
||||
@testable import Hex
|
||||
|
||||
final class KeyEventMonitorClientTests: XCTestCase {
|
||||
func testRegisteringFirstHandlerWhenInputMonitoringIsDeniedDoesNotReenterQueue() {
|
||||
let monitor = KeyEventMonitorClientLive(
|
||||
accessibilityTrustProvider: { false },
|
||||
accessibilityTrustPrompt: { false },
|
||||
inputMonitoringTrustProvider: { false }
|
||||
)
|
||||
|
||||
let token = monitor.handleKeyEvent { _ in false }
|
||||
|
||||
XCTAssertTrue(monitor.readState { true })
|
||||
token.cancel()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user