Skip to content

Commit

Permalink
feat(mocktail_image_network): v0.2.0 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Oct 9, 2021
1 parent dc6b422 commit 4ff3e6c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/mocktail_image_network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.2.0

- feat: upgrade to `mocktail ^0.2.0`

# 0.1.0

- feat: upgrade to `mocktail ^0.1.0`
Expand Down
2 changes: 1 addition & 1 deletion packages/mocktail_image_network/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: An example of mocktail_image_network usage
publish_to: none

environment:
sdk: ">=2.12.0-0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// A Dart package which allows you to mock Image.network
/// in your widget tests with confidence using [mocktail](https://pub.dev/packages/mocktail).
library mocktail_image_network;

export 'src/mocktail_image_network.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ T mockNetworkImages<T>(T Function() body) {

class _MockHttpClient extends Mock implements HttpClient {
_MockHttpClient() {
registerFallbackValue<void Function(List<int>)>((List<int> _) {});
registerFallbackValue<Uri>(Uri());
registerFallbackValue((List<int> _) {});
registerFallbackValue(Uri());
}

@override
Expand Down
6 changes: 3 additions & 3 deletions packages/mocktail_image_network/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: mocktail_image_network
description: A Dart package which allows you to mock Image.network in your widget tests with confidence using the mocktail package.
version: 0.1.0
version: 0.2.0
repository: https://github.com/felangel/mocktail
homepage: https://github.com/felangel/mocktail/tree/main/packages/mocktail_image_network

environment:
sdk: ">=2.12-0-0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"

dependencies:
mocktail: ^0.1.0
mocktail: ^0.2.0

dev_dependencies:
test: ^1.16.0

0 comments on commit 4ff3e6c

Please sign in to comment.