Skip to content

Commit

Permalink
Tests - Check Telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
cocojoe committed Mar 10, 2017
1 parent da05010 commit 4f6e778
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Auth0Tests/AuthenticationSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4f6e778

Please sign in to comment.