Skip to content

Commit

Permalink
fix: added simple smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Sep 12, 2024
1 parent 3d5acdf commit 85d0145
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/src/snacky_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ void main() {
onTapValue = null;
});

Widget prepareWidgetForTesting([hideOptionalData = false]) => SnackyConfiguratorWidget(
Widget prepareWidgetForTesting([hideOptionalData = false]) =>
SnackyConfiguratorWidget(
snackyController: snackyController,
app: MaterialApp(
theme: ThemeData(useMaterial3: false),
Expand Down Expand Up @@ -55,7 +56,8 @@ void main() {
await tester.pumpAndSettle();
});

testWidgets('Should call the onTap when tapped', (WidgetTester tester) async {
testWidgets('Should call the onTap when tapped',
(WidgetTester tester) async {
await tester.pumpWidget(prepareWidgetForTesting());
await tester.pumpAndSettle();

Expand Down

0 comments on commit 85d0145

Please sign in to comment.