diff --git a/Auth0Tests/AuthenticationSpec.swift b/Auth0Tests/AuthenticationSpec.swift index 3eb02cb2e..6fa75e56d 100644 --- a/Auth0Tests/AuthenticationSpec.swift +++ b/Auth0Tests/AuthenticationSpec.swift @@ -724,12 +724,17 @@ class AuthenticationSpec: QuickSpec { describe("spawn WebAuth instance") { - it("should return a WebAuth instance with matching authentication credentials") { + it("should return a WebAuth instance with matching credentials") { let webAuth = auth.webAuth(withConnection: "facebook") expect(webAuth.clientId) == auth.clientId expect(webAuth.url) == auth.url } + it("should return a WebAuth instance with matching telemetry") { + let webAuth = auth.webAuth(withConnection: "facebook") as! SafariWebAuth + expect(webAuth.telemetry.info) == auth.telemetry.info + } + it("should return a WebAuth instance with matching connection") { let webAuth = auth.webAuth(withConnection: "facebook") as! SafariWebAuth expect(webAuth.parameters["connection"]) == "facebook"