mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:02:10 +00:00
Add location related analytics (#1241)
* Refactor trackComposer method * Track location screen * Refactor isPinDropSharing -> isSharingUserLocation * Add trackComposer event * Fix UTs * Cleanup * Add AnalyticsLocationType
This commit is contained in:
@@ -32,13 +32,13 @@ class StaticLocationScreenViewModelTests: XCTestCase {
|
||||
|
||||
override func setUpWithError() throws {
|
||||
let viewModel = StaticLocationScreenViewModel(interactionMode: .picker)
|
||||
viewModel.state.isPinDropSharing = false
|
||||
viewModel.state.isSharingUserLocation = true
|
||||
self.viewModel = viewModel
|
||||
}
|
||||
|
||||
func testUserDidPan() async throws {
|
||||
XCTAssertFalse(context.viewState.isPinDropSharing)
|
||||
XCTAssertTrue(context.viewState.isSharingUserLocation)
|
||||
context.send(viewAction: .userDidPan)
|
||||
XCTAssertTrue(context.viewState.isPinDropSharing)
|
||||
XCTAssertFalse(context.viewState.isSharingUserLocation)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user