Skip to content

Commit

Permalink
docs(mocktail_image_network): improve example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Jul 25, 2023
1 parent 19d5618 commit 8d02eed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/mocktail_image_network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ without a problem!
```dart
void main() {
testWidgets('can use mocktail for network images', (tester) async {
await mockNetworkImages(() async {
await tester.pumpWidget(FakeApp());
expect(find.byType(Image), findsOneWidget);
});
await mockNetworkImages(() async => tester.pumpWidget(FakeApp()));
expect(find.byType(Image), findsOneWidget);
});
}
```
Expand Down

0 comments on commit 8d02eed

Please sign in to comment.