@@ -9,14 +9,14 @@ final class PostNotificationTest: XCTestCase, XCTestCaseProvider {
99 expect {
1010 // no notifications here!
1111 return nil
12- } . to ( postNotifications ( beEmpty ( ) , fromNotificationCenter : notificationCenter) )
12+ } . to ( postNotifications ( beEmpty ( ) , from : notificationCenter) )
1313 }
1414
1515 func testPassesWhenExpectedNotificationIsPosted( ) {
1616 let testNotification = Notification ( name: Notification . Name ( " Foo " ) , object: nil )
1717 expect {
1818 self . notificationCenter. post ( testNotification)
19- } . to ( postNotifications ( equal ( [ testNotification] ) , fromNotificationCenter : notificationCenter) )
19+ } . to ( postNotifications ( equal ( [ testNotification] ) , from : notificationCenter) )
2020 }
2121
2222 func testPassesWhenAllExpectedNotificationsArePosted( ) {
@@ -28,7 +28,7 @@ final class PostNotificationTest: XCTestCase, XCTestCaseProvider {
2828 self . notificationCenter. post ( n1)
2929 self . notificationCenter. post ( n2)
3030 return nil
31- } . to ( postNotifications ( equal ( [ n1, n2] ) , fromNotificationCenter : notificationCenter) )
31+ } . to ( postNotifications ( equal ( [ n1, n2] ) , from : notificationCenter) )
3232 }
3333
3434 func testFailsWhenNoNotificationsArePosted( ) {
@@ -37,7 +37,7 @@ final class PostNotificationTest: XCTestCase, XCTestCaseProvider {
3737 expect {
3838 // no notifications here!
3939 return nil
40- } . to ( postNotifications ( equal ( [ testNotification] ) , fromNotificationCenter : self . notificationCenter) )
40+ } . to ( postNotifications ( equal ( [ testNotification] ) , from : self . notificationCenter) )
4141 }
4242 }
4343
@@ -48,7 +48,7 @@ final class PostNotificationTest: XCTestCase, XCTestCaseProvider {
4848 expect {
4949 self . notificationCenter. post ( n2)
5050 return nil
51- } . to ( postNotifications ( equal ( [ n1] ) , fromNotificationCenter : self . notificationCenter) )
51+ } . to ( postNotifications ( equal ( [ n1] ) , from : self . notificationCenter) )
5252 }
5353 }
5454
@@ -59,7 +59,7 @@ final class PostNotificationTest: XCTestCase, XCTestCaseProvider {
5959 expect {
6060 self . notificationCenter. post ( n2)
6161 return nil
62- } . to ( postNotifications ( equal ( [ n1] ) , fromNotificationCenter : self . notificationCenter) )
62+ } . to ( postNotifications ( equal ( [ n1] ) , from : self . notificationCenter) )
6363 }
6464 }
6565
@@ -70,6 +70,6 @@ final class PostNotificationTest: XCTestCase, XCTestCaseProvider {
7070 self . notificationCenter. post ( testNotification)
7171 }
7272 return nil
73- } . toEventually ( postNotifications ( equal ( [ testNotification] ) , fromNotificationCenter : notificationCenter) )
73+ } . toEventually ( postNotifications ( equal ( [ testNotification] ) , from : notificationCenter) )
7474 }
7575}
0 commit comments