Skip to content

Commit

Permalink
[Tests] Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Jul 14, 2024
1 parent 8569612 commit 057825b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/application/custom_build/custom_build_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion test/application/custom_builds/custom_builds_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/application/tier_list/tier_list_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/application/weapon/weapon_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 057825b

Please sign in to comment.