always call tear down (#1909)

This commit is contained in:
Mauro
2023-10-16 17:28:06 +02:00
committed by GitHub
parent 9ab3b20a49
commit 524e4b3f1e
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -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.