diff --git a/test/application/custom_build/custom_build_bloc_test.dart b/test/application/custom_build/custom_build_bloc_test.dart index ad1a9532..bd1b1013 100644 --- a/test/application/custom_build/custom_build_bloc_test.dart +++ b/test/application/custom_build/custom_build_bloc_test.dart @@ -32,7 +32,7 @@ void main() { setUpAll(() { TestWidgetsFlutterBinding.ensureInitialized(); - final settingsService = SettingsServiceImpl(); + final settingsService = SettingsServiceImpl(MockLoggingService()); final localeService = LocaleServiceImpl(settingsService); resourceService = getResourceService(settingsService); genshinService = GenshinServiceImpl(resourceService, localeService); diff --git a/test/application/custom_builds/custom_builds_bloc_test.dart b/test/application/custom_builds/custom_builds_bloc_test.dart index 56379e17..f9660731 100644 --- a/test/application/custom_builds/custom_builds_bloc_test.dart +++ b/test/application/custom_builds/custom_builds_bloc_test.dart @@ -8,6 +8,7 @@ import 'package:shiori/domain/services/genshin_service.dart'; import 'package:shiori/infrastructure/infrastructure.dart'; import '../../common.dart'; +import '../../mocks.mocks.dart'; const _dbFolder = 'shiori_custom_builds_bloc_tests'; @@ -23,7 +24,7 @@ void main() { setUpAll(() { TestWidgetsFlutterBinding.ensureInitialized(); - final settingsService = SettingsServiceImpl(); + final settingsService = SettingsServiceImpl(MockLoggingService()); final localeService = LocaleServiceImpl(settingsService); final resourceService = getResourceService(settingsService); genshinService = GenshinServiceImpl(resourceService, localeService); diff --git a/test/application/tier_list/tier_list_bloc_test.dart b/test/application/tier_list/tier_list_bloc_test.dart index f7ddcbd6..a3606ee5 100644 --- a/test/application/tier_list/tier_list_bloc_test.dart +++ b/test/application/tier_list/tier_list_bloc_test.dart @@ -25,7 +25,7 @@ void main() { TestWidgetsFlutterBinding.ensureInitialized(); telemetryService = MockTelemetryService(); loggingService = MockLoggingService(); - final settingsService = SettingsServiceImpl(); + final settingsService = SettingsServiceImpl(loggingService); final resourceService = getResourceService(settingsService); genshinService = GenshinServiceImpl(resourceService, LocaleServiceImpl(settingsService)); dataService = DataServiceImpl(genshinService, CalculatorAscMaterialsServiceImpl(genshinService, resourceService), resourceService); diff --git a/test/application/weapon/weapon_bloc_test.dart b/test/application/weapon/weapon_bloc_test.dart index 9b3340e3..5ec927d9 100644 --- a/test/application/weapon/weapon_bloc_test.dart +++ b/test/application/weapon/weapon_bloc_test.dart @@ -25,7 +25,7 @@ void main() { setUpAll(() { TestWidgetsFlutterBinding.ensureInitialized(); telemetryService = MockTelemetryService(); - final settingsService = SettingsServiceImpl(); + final settingsService = SettingsServiceImpl(MockLoggingService()); final localeService = LocaleServiceImpl(settingsService); resourceService = getResourceService(settingsService); genshinService = GenshinServiceImpl(resourceService, localeService);