Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhtai committed Nov 3, 2023
1 parent e0f0eae commit 39412b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/go_router/example/test/extra_codec_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import 'package:go_router_examples/extra_codec.dart' as example;
void main() {
testWidgets('example works', (WidgetTester tester) async {
await tester.pumpWidget(const example.MyApp());
expect(find.text('extra for this page is: null'), findsOneWidget);
expect(find.text('The extra for this page is: null'), findsOneWidget);

await tester.tap(find.text('Set extra to ComplexData1'));
await tester.pumpAndSettle();
expect(find.text('extra for this page is: ComplexData1(data: data)'),
expect(find.text('The extra for this page is: ComplexData1(data: data)'),
findsOneWidget);

await tester.tap(find.text('Set extra to ComplexData2'));
await tester.pumpAndSettle();
expect(find.text('extra for this page is: ComplexData2(data: data)'),
expect(find.text('The extra for this page is: ComplexData2(data: data)'),
findsOneWidget);
});
}

0 comments on commit 39412b5

Please sign in to comment.