Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Kladek committed Jun 11, 2024
1 parent 39a388b commit 7bf9be4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MapboxNavigation/NavigationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ open class NavigationViewController: UIViewController {
/// - nightStyle: Style used to render the map during nighttime hours. If nil, `dayStyle` will be used at night as well.
/// - directions: Used when recomputing a new route, for example if the user takes a wrong turn and needs re-routing. If unspecified, a default will be used.
/// - voiceController: Produces voice instructions for route navigation. If nil, a default will be used.
/// @objc(initWithStyleURL:directions:styles:voiceController:)
@objc(initWithDayStyle:nightStyle:directions:voiceController:)
public required init(dayStyle: Style,
nightStyle: Style? = nil,
directions: Directions = Directions.shared,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,9 @@ class NavigationViewControllerTestable: NavigationViewController {
func mapView(_ mapView: MLNMapView, didFinishLoading style: MLNStyle) {
self.styleLoadedExpectation.fulfill()
}

@available(*, unavailable)
required init?(coder aDecoder: NSCoder) {
fatalError("This initalizer is not supported in this testing subclass.")
}

@objc(initWithStyleURL:directions:styles:voiceController:) required init(dayStyle: Style, nightStyle: Style? = nil, directions: Directions = Directions.shared, voiceController: RouteVoiceController = RouteVoiceController()) {
@objc(initWithDayStyle:nightStyle:directions:voiceController:)
required init(dayStyle: Style, nightStyle: Style? = nil, directions: Directions = Directions.shared, voiceController: RouteVoiceController = RouteVoiceController()) {
fatalError("init(dayStyle:nightStyle:directions:voiceController:) has not been implemented")
}
}
Expand Down

0 comments on commit 7bf9be4

Please sign in to comment.