-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Description
Current issue of mockito is 2.2.1 (latest stable release), however it is not fully Dart 2 compliant:
compiler message: file:///usr/local/google/home/vegorov/.pub-cache/hosted/pub.dartlang.org/mockito-2.2.1/lib/src/mock.dart:680:32: Error: A value of type '(#lib1::_VerifyCall) → #lib1::Mock' can't be assigned to a variable of type '(dynamic) → dynamic'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to '(dynamic) → dynamic'.
compiler message: tmpVerifyCalls.map((_VerifyCall vc) => vc.mock).toSet();
compiler message:This makes tests using mockito fail when running in Dart 2 mode.
This issue is to track an upgrade when it becomes available. Currently only unstable 3.0.0-alpha is available.
Currently the only test in Flutter repository, I know about, that is using package mockito is packages/flutter/test/material/animated_icons_test.dart
Metadata
Metadata
Assignees
Labels
No labels