mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 07:27:42 +02:00
Add tests to onboarding personalisation.
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ enum MockOnboardingCongratulationsScreenState: MockScreenState, CaseIterable {
|
||||
// with specific, minimal associated data that will allow you
|
||||
// mock that screen.
|
||||
case regular
|
||||
case personalisationDisabled
|
||||
case personalizationDisabled
|
||||
|
||||
/// The associated screen
|
||||
var screenType: Any.Type {
|
||||
@@ -39,7 +39,7 @@ enum MockOnboardingCongratulationsScreenState: MockScreenState, CaseIterable {
|
||||
switch self {
|
||||
case .regular:
|
||||
viewModel = OnboardingCongratulationsViewModel(userId: "@testuser:example.com")
|
||||
case .personalisationDisabled:
|
||||
case .personalizationDisabled:
|
||||
viewModel = OnboardingCongratulationsViewModel(userId: "@testuser:example.com", personalizationDisabled: true)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user