philips-software/cogito

View on GitHub
workspaces/cogito-ios-app/CogitoTests/Telepath/TelepathChannelExample.swift

Summary

Maintainability
A
0 mins
Test Coverage
import Foundation
@testable import Cogito

extension TelepathChannel {
    static var example: TelepathChannel {

        let connectUrl = URL(string: "https://cogito.example.com/telepath/connect#I=1234&E=abcd&A=QQ")!
        let channel = TelepathChannel(connectUrl: connectUrl,
                                      telepath: TelepathMock())
        channel.connect(completion: nil)
        return channel
    }
}