Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.

Commit fefa0cf

Browse files
authored
fix(cubit_test): handle breaking change in package:async (#63)
1 parent 4238c7a commit fefa0cf

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

packages/cubit_test/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 0.1.1
2+
3+
- fix: upgrade to `cubit: ^0.1.2`
4+
- fix: support breaking `StreamQueue` change in `async: 2.4.2`
5+
- https://github.com/dart-lang/async/issues/122
6+
- https://github.com/dart-lang/async/pull/123
7+
- docs: minor documentation improvements
8+
19
# 0.1.0
210

311
- feat: upgrade to `cubit: ^0.1.0`

packages/cubit_test/lib/src/when_listen.dart

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ void whenListen<Event, State>(
3535
) {
3636
final broadcastStream = stream.asBroadcastStream();
3737
StreamSubscription<State> subscription;
38+
when(cubit.isBroadcast).thenReturn(true);
3839
when(cubit.skip(any)).thenAnswer(
3940
(invocation) {
4041
final stream = broadcastStream.skip(

packages/cubit_test/pubspec.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ description: A testing library built to make testing cubits easy. Built to be us
33
repository: https://github.com/felangel/cubit
44
issue_tracker: https://github.com/felangel/cubit/issues
55
homepage: https://github.com/felangel/cubit
6+
documentation: https://github.com/felangel/cubit
67

7-
version: 0.1.0
8+
version: 0.1.1
89

910
environment:
1011
sdk: ">=2.7.0 <3.0.0"
1112

1213
dependencies:
13-
cubit: ^0.1.0
14+
cubit: ^0.1.2
1415
mockito: ^4.0.0
1516
test: ^1.14.0
1617
meta: ^1.1.6

0 commit comments

Comments
 (0)