Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivaresf committed Jun 2, 2024
1 parent 8341cbe commit 496fad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Turbo Navigator/TurboNavigatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ final class TurboNavigationHierarchyControllerTests: XCTestCase {
navigator.route(VisitProposal(path: "/two", context: .modal))
XCTAssertEqual(modalNavigationController.viewControllers.count, 2)

navigator.route(VisitProposal(presentation: .pop))
navigator.route(VisitProposal(context: .modal, presentation: .pop))
XCTAssertNotNil(navigationController.presentedViewController)
XCTAssertEqual(modalNavigationController.viewControllers.count, 1)
}
Expand All @@ -196,7 +196,7 @@ final class TurboNavigationHierarchyControllerTests: XCTestCase {
navigator.route(VisitProposal(path: "/one", context: .modal))
XCTAssertEqual(modalNavigationController.viewControllers.count, 1)

navigator.route(VisitProposal(presentation: .pop))
navigator.route(VisitProposal(context: .modal, presentation: .pop))
XCTAssertNil(navigationController.presentedViewController)
}

Expand Down

0 comments on commit 496fad0

Please sign in to comment.