Set up Analytics to track data per session (#780)

This commit is contained in:
Nicolas Mauri
2023-04-18 09:33:32 +02:00
committed by GitHub
parent d01349a60e
commit 5b7ec6c9e2
58 changed files with 953 additions and 375 deletions
@@ -56,4 +56,15 @@ class SettingsScreenViewModelTests: XCTestCase {
await Task.yield()
XCTAssert(correctResult)
}
func testAnalytics() async throws {
var correctResult = false
viewModel.callback = { result in
correctResult = result == .analytics
}
context.send(viewAction: .analytics)
await Task.yield()
XCTAssert(correctResult)
}
}