Provide a default implementation for the NotificationToneManager and fix the NotificationSettingsScreen preview tests

This commit is contained in:
Stefan Ceriu
2026-05-20 20:12:20 +03:00
parent e04993dc61
commit 13128d9869
3 changed files with 20 additions and 2 deletions
@@ -283,9 +283,9 @@ struct NotificationSettingsScreen_Previews: PreviewProvider, TestablePreview {
var viewModel = NotificationSettingsScreenViewModel(appSettings: appSettings,
userNotificationCenter: notificationCenter,
notificationToneManager: NotificationToneManagerMock(),
notificationToneManager: NotificationToneManagerMock.default,
notificationSettingsProxy: notificationSettingsProxy,
userIndicatorController: UserIndicatorControllerMock(),
userIndicatorController: UserIndicatorControllerMock.default,
isModallyPresented: true)
viewModel.fetchInitialContent()
return viewModel