Skip to content

Commit

Permalink
add sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdk-21 committed Dec 14, 2023
1 parent 85a92ea commit bcc25d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/components/item_carousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ItemCarousel extends HookConsumerWidget {
padding: const EdgeInsets.only(right: 12.0),
child: Column(
children: [
Container(
SizedBox(
width: width,
height: height,
child: Stack(
Expand Down
20 changes: 1 addition & 19 deletions test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,8 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:jellyflix/main.dart';

void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());

// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);

// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();

// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
testWidgets('Sample test for later', (WidgetTester tester) async {});
}

0 comments on commit bcc25d0

Please sign in to comment.