Skip to content

Commit 0588e87

Browse files
enable unit web tests for catalyst_voices_assets (#2358)
Co-authored-by: Oleksandr Prokhorenko <[email protected]>
1 parent 305b1b7 commit 0588e87

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

catalyst_voices/melos.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,9 @@ scripts:
259259
# TODO(kukkok3):
260260
# catalyst_voices: this package should contain only widget tests
261261
# catalyst_voices_repositories: enable when https://github.com/input-output-hk/catalyst-voices/issues/1980 is fixed
262-
# catalyst_voices_assets: enable when https://github.com/input-output-hk/catalyst-voices/issues/1979 is fixed
263262
test-web:
264263
run: |
265-
melos exec -c 1 --dir-exists="test" --ignore="catalyst_voices,catalyst_voices_repositories,catalyst_voices_assets" -- flutter test --platform chrome
264+
melos exec -c 1 --dir-exists="test" --ignore="catalyst_voices,catalyst_voices_repositories" -- flutter test --platform chrome
266265
description: Run `flutter test --platform chrome` for all packages.
267266

268267
test-report-web:

catalyst_voices/packages/internal/catalyst_voices_brands/test/src/catalyst_voices_brands_test.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ import 'package:flutter_test/flutter_test.dart';
88
void main() {
99
const catalystKey = Key('C');
1010

11-
Widget buildApp() => BlocProvider(
11+
Widget buildApp({
12+
ThemeMode themeMode = ThemeMode.light,
13+
}) =>
14+
BlocProvider(
1215
create: (context) => BrandBloc(),
1316
child: BlocBuilder<BrandBloc, BrandState>(
1417
builder: (context, state) {
1518
return MaterialApp(
19+
themeMode: themeMode,
1620
home: Builder(
1721
builder: (context) => Scaffold(
1822
body: Row(

0 commit comments

Comments
 (0)