mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
LocationSharingViewModelTests: Fix missing parameter.
This commit is contained in:
+6
-3
@@ -49,7 +49,7 @@ class LocationSharingViewModelTests: XCTestCase {
|
||||
XCTFail()
|
||||
case .cancel:
|
||||
expectation.fulfill()
|
||||
case .shareLiveLocation(timeout: let timeout):
|
||||
case .shareLiveLocation:
|
||||
XCTFail()
|
||||
}
|
||||
}
|
||||
@@ -94,7 +94,10 @@ class LocationSharingViewModelTests: XCTestCase {
|
||||
}
|
||||
|
||||
private func buildViewModel() -> LocationSharingViewModel {
|
||||
LocationSharingViewModel(mapStyleURL: URL(string: "http://empty.com")!,
|
||||
avatarData: AvatarInput(mxContentUri: "", matrixItemId: "", displayName: ""))
|
||||
|
||||
let service = MockLocationSharingService()
|
||||
|
||||
return LocationSharingViewModel(mapStyleURL: URL(string: "http://empty.com")!,
|
||||
avatarData: AvatarInput(mxContentUri: "", matrixItemId: "", displayName: ""), service: service)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user