mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 15:23:25 +08:00
fix Dart 2 type issue in a test (#15)
This commit is contained in:
@ -31,7 +31,7 @@ void main() {
|
|||||||
String postUri;
|
String postUri;
|
||||||
Map<String, String> headers;
|
Map<String, String> headers;
|
||||||
List<int> body;
|
List<int> body;
|
||||||
httpMock.answerWith((Invocation invocation) {
|
httpMock.answerWith((Invocation invocation) async {
|
||||||
if (invocation.memberName == #close) {
|
if (invocation.memberName == #close) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ void main() {
|
|||||||
final MockClient httpMock = new MockClient();
|
final MockClient httpMock = new MockClient();
|
||||||
final Clock fakeClock = new Clock.fixed(new DateTime(2017, 1, 2));
|
final Clock fakeClock = new Clock.fixed(new DateTime(2017, 1, 2));
|
||||||
|
|
||||||
httpMock.answerWith((Invocation invocation) {
|
httpMock.answerWith((Invocation invocation) async {
|
||||||
if (invocation.memberName == #close) {
|
if (invocation.memberName == #close) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user