Skip to content

Commit

Permalink
Fix golden test
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Dec 28, 2024
1 parent 3585edc commit 16da52f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/test_goldens/settings/settings_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import 'package:provider/provider.dart';
import 'package:sharezone/l10n/feature_flag_l10n.dart';
import 'package:sharezone/main/application_bloc.dart';
import 'package:sharezone/settings/settings_page.dart';
import 'package:sharezone/util/cache/streaming_key_value_store.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart';

import 'settings_page_test.mocks.dart';
Expand All @@ -30,10 +29,9 @@ void main() {
await tester.pumpWidgetBuilder(
BlocProvider<SharezoneContext>(
bloc: MockSharezoneContext(),
child: Provider(
create: (context) => FeatureFlagl10n(
InMemoryStreamingKeyValueStore(),
),
child: ChangeNotifierProvider<FeatureFlagl10n>(
create: (context) => MockFeatureFlagl10n(),
child: const SettingsPageBody(),
),
),
wrapper: materialAppWrapper(theme: theme),
Expand Down

0 comments on commit 16da52f

Please sign in to comment.