Skip to content

Commit b45d84f

Browse files
committed
WIP
1 parent e0fa8d6 commit b45d84f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Lib/SauceTests/KeyboardLayoutTests.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,18 @@ final class KeyboardLayoutTests: XCTestCase {
3737
private let QWERTYVKeyCode = 9
3838
private let DvorakVKeyCode = 47 // swiftlint:disable:this identifier_name
3939

40-
private var selectedInputSource: InputSource?
40+
private static var selectedInputSource: InputSource?
4141

42-
override func setUp() {
42+
override static func setUp() {
4343
super.setUp()
4444
selectedInputSource = InputSource(source: TISCopyCurrentKeyboardLayoutInputSource().takeUnretainedValue())
4545
}
4646

47-
override func tearDown() {
47+
override static func tearDown() {
4848
super.tearDown()
4949
guard let selectedInputSource else { return }
50-
selectInputSource(id: selectedInputSource.id)
50+
TISEnableInputSource(selectedInputSource.source)
51+
TISSelectInputSource(selectedInputSource.source)
5152
}
5253

5354
// MARK: - Tests

0 commit comments

Comments
 (0)