From 496fad0cda3879b0c5783820e470eb038bba2149 Mon Sep 17 00:00:00 2001 From: Fernando Olivares Date: Sun, 2 Jun 2024 16:33:05 -0600 Subject: [PATCH] Update unit tests --- Tests/Turbo Navigator/TurboNavigatorTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Turbo Navigator/TurboNavigatorTests.swift b/Tests/Turbo Navigator/TurboNavigatorTests.swift index aa26088..77b5393 100644 --- a/Tests/Turbo Navigator/TurboNavigatorTests.swift +++ b/Tests/Turbo Navigator/TurboNavigatorTests.swift @@ -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) } @@ -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) }