diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index 7937503..aa79990 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -13,12 +13,13 @@ import 'package:infinite_carousel_example/main.dart'; void main() { testWidgets('Verify Platform version', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); + await tester.pumpWidget(const MyApp()); // Verify that platform version is retrieved. expect( find.byWidgetPredicate( - (Widget widget) => widget is Text && widget.data!.startsWith('Running on:'), + (Widget widget) => + widget is Text && widget.data!.startsWith('Running on:'), ), findsOneWidget, );