Skip to content

Commit

Permalink
Fix iOS test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Dec 13, 2024
1 parent ed7bb8d commit f366523
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/maplibre/swiftui-dsl",
"state" : {
"revision" : "ba76be30097bb92f2316742316c2090cef934910",
"version" : "0.4.1"
"revision" : "e9ad08274471fb30e8cfddf55c3a6c5426943b20",
"version" : "0.4.3"
}
}
],
Expand Down
5 changes: 4 additions & 1 deletion apple/Tests/FerrostarCoreTests/FerrostarCoreTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,10 @@ final class FerrostarCoreTests: XCTestCase {

locationProvider.lastLocation = CLLocation(latitude: 0, longitude: 0).userLocation
let config = SwiftNavigationControllerConfig(
stepAdvance: .relativeLineStringDistance(minimumHorizontalAccuracy: 16, automaticAdvanceDistance: 16),
stepAdvance: .relativeLineStringDistance(
minimumHorizontalAccuracy: 16,
specialAdvanceConditions: .advanceAtDistanceFromEnd(16)
),
routeDeviationTracking: .custom(detector: { _, _, _ in
// Pretend that the user is always off route
.offRoute(deviationFromRouteLine: 42)
Expand Down

0 comments on commit f366523

Please sign in to comment.