Skip to content

Commit c53f381

Browse files
author
Alexey Naumov
committed
fix: Tests for iOS 16
1 parent ec6194d commit c53f381

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

UnitTests/System/SystemEventsHandlerTests.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,6 @@ final class SystemEventsHandlerTests: XCTestCase {
116116
verify()
117117
}
118118

119-
#if os(iOS) && !targetEnvironment(macCatalyst)
120-
func test_keyboardHeight() throws {
121-
let textField = UITextField(frame: .zero)
122-
let window = try XCTUnwrap(UIApplication.shared.windows.first, "Cannot extract the host view")
123-
window.makeKeyAndVisible()
124-
window.addSubview(textField)
125-
setupSut()
126-
XCTAssertEqual(appState.system.keyboardHeight, 0)
127-
textField.becomeFirstResponder()
128-
XCTAssertGreaterThan(appState.system.keyboardHeight, 0)
129-
textField.removeFromSuperview()
130-
verify()
131-
}
132-
#endif
133-
134119
func test_handlePushRegistration() {
135120
setupSut(pushToken: [
136121
.register(Data())

UnitTests/UI/CountriesListTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ final class CountriesListTests: XCTestCase {
8888

8989
func test_countries_failed_retry() {
9090
let container = DIContainer(appState: AppState(), interactors: .mocked(
91-
countriesInteractor: [.loadCountries(search: "", locale: .current)]
91+
countriesInteractor: [.loadCountries(search: "", locale: Locale(identifier: ""))]
9292
))
9393
let sut = CountriesList(countries: .failed(NSError.test))
9494
let exp = sut.inspection.inspect { view in

0 commit comments

Comments
 (0)