Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mohssenfathi committed Aug 13, 2024
1 parent 9799fc3 commit 221a8fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/UberSDK/UberSDK.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"testTargets" : [
{
"parallelizable" : true,
"target" : {
"containerPath" : "container:UberSDK.xcodeproj",
"identifier" : "B2D7AE272B979EDB007F03FB",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class RideRequestViewControllerTests: XCTestCase {
super.setUp()
tokenManager.deleteToken(identifier: testIdentifier, accessGroup: accessGroup)
}

override func tearDown() {
super.tearDown()
tokenManager.deleteToken(identifier: testIdentifier, accessGroup: accessGroup)
}

func testRideRequestViewLoads_withValidAccessToken() {
var expectation = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ class RideRequestViewTests: XCTestCase {
*/
func testAuthorizeFailsWithoutAccessToken() {
testExpectation = expectation(description: "access token missing delegate call")

_ = tokenManager.deleteToken()

let view = RideRequestView()
view.delegate = self
_ = tokenManager.deleteToken()

view.load()

Expand Down

0 comments on commit 221a8fd

Please sign in to comment.