@@ -55,7 +55,7 @@ class KeyboardHelperTests: XCTestCase {
55
55
let spyDelegate = ShowSpyDelegate ( )
56
56
let kh = KeyboardHelper ( delegate: spyDelegate)
57
57
58
- let expectation = self . expectation ( withDescription : " KeyboardHelper calls the delegate as the result of receiving the show notification " )
58
+ let expectation = self . expectation ( description : " KeyboardHelper calls the delegate as the result of receiving the show notification " )
59
59
spyDelegate. expectation = expectation
60
60
61
61
// NSNotificationCenter.defaultCenter().postNotificationName(UIKeyboardWillShowNotification, object: kh)
@@ -81,7 +81,7 @@ class KeyboardHelperTests: XCTestCase {
81
81
82
82
83
83
84
- waitForExpectations ( withTimeout : 1 ) { error in
84
+ waitForExpectations ( timeout : 1 ) { error in
85
85
if let error = error {
86
86
XCTFail ( " waitForExpectationsWithTimeout errored: \( error) " )
87
87
}
@@ -104,13 +104,13 @@ class KeyboardHelperTests: XCTestCase {
104
104
let spyDelegate = HideSpyDelegate ( )
105
105
let kh = KeyboardHelper ( delegate: spyDelegate)
106
106
107
- let expectation = self . expectation ( withDescription : " KeyboardHelper calls the delegate as the result of receiving the hide notification " )
107
+ let expectation = self . expectation ( description : " KeyboardHelper calls the delegate as the result of receiving the hide notification " )
108
108
spyDelegate. expectation = expectation
109
109
110
110
NotificationCenter . default. post ( name: NSNotification . Name. UIKeyboardWillHide, object: kh)
111
111
112
112
113
- waitForExpectations ( withTimeout : 1 ) { error in
113
+ waitForExpectations ( timeout : 1 ) { error in
114
114
if let error = error {
115
115
XCTFail ( " waitForExpectationsWithTimeout errored: \( error) " )
116
116
}
0 commit comments