mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
always call tear down (#1909)
This commit is contained in:
parent
9ab3b20a49
commit
524e4b3f1e
@ -25,7 +25,7 @@ class AnalyticsSettingsScreenViewModelTests: XCTestCase {
|
||||
private var context: AnalyticsSettingsScreenViewModelType.Context!
|
||||
|
||||
override func tearDown() {
|
||||
appSettings.analyticsConsentState = .unknown
|
||||
AppSettings.reset()
|
||||
}
|
||||
|
||||
@MainActor override func setUpWithError() throws {
|
||||
|
@ -37,6 +37,10 @@ class AnalyticsTests: XCTestCase {
|
||||
bugReportService: ServiceLocator.shared.bugReportService))
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
AppSettings.reset()
|
||||
}
|
||||
|
||||
func testAnalyticsPromptNewUser() {
|
||||
// Given a fresh install of the app (without PostHog analytics having been set).
|
||||
// When the user is prompted for analytics.
|
||||
|
@ -41,6 +41,10 @@ class ComposerToolbarViewModelTests: XCTestCase {
|
||||
appSettings: appSettings,
|
||||
mentionDisplayHelper: ComposerMentionDisplayHelper.mock)
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
AppSettings.reset()
|
||||
}
|
||||
|
||||
func testComposerFocus() {
|
||||
viewModel.process(roomAction: .setMode(mode: .edit(originalItemId: TimelineItemIdentifier(timelineID: "mock"))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user