Skip to content

Commit cd8ad9d

Browse files
Brandon Shegahamchapman
authored andcommitted
Fixed unit tests failing
1 parent 82d7cb8 commit cd8ad9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AuthenticationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class AuthenticationTests: XCTestCase {
250250
func testAuthorizationUsingSomethingConformingToTheAuthorizerProtocol() {
251251

252252
class SomeAuthorizer: Authorizer {
253-
func fetchAuthValue(socketID: String, channelName: String, completionHandler: (PusherAuth?) -> ()) {
253+
func fetchAuthValue(socketID: String, channelName: String, completionHandler: @escaping (PusherAuth?) -> ()) {
254254
completionHandler(PusherAuth(auth: "testKey123:authorizerblah123"))
255255
}
256256
}
@@ -280,7 +280,7 @@ class AuthenticationTests: XCTestCase {
280280
func testAuthorizationOfPresenceChannelSubscriptionUsingSomethingConformingToTheAuthorizerProtocol() {
281281

282282
class SomeAuthorizer: Authorizer {
283-
func fetchAuthValue(socketID: String, channelName: String, completionHandler: (PusherAuth?) -> ()) {
283+
func fetchAuthValue(socketID: String, channelName: String, completionHandler: @escaping (PusherAuth?) -> ()) {
284284
completionHandler(PusherAuth(
285285
auth: "testKey123:authorizerblah1234",
286286
channelData: "{\"user_id\":\"777\", \"user_info\":{\"twitter\":\"hamchapman\"}}"

0 commit comments

Comments
 (0)