TF-1487 Fix run command flutter test
(cherry picked from commit 798b5613d2cc98223c7c236545c244c1499dc982)
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import 'package:forward/forward/forward_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/id.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
class ForwardIdConverter implements JsonConverter<ForwardId, String> {
|
||||
const ForwardIdConverter();
|
||||
|
||||
@override
|
||||
ForwardId fromJson(String json) => ForwardId(id: Id(json));
|
||||
|
||||
@override
|
||||
String toJson(ForwardId object) => object.id.value;
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:forward/forward/capability_forward.dart';
|
||||
import 'package:forward/forward/converter/forward_id_coverter.dart';
|
||||
import 'package:jmap_dart_client/http/converter/account_id_converter.dart';
|
||||
import 'package:jmap_dart_client/http/converter/id_converter.dart';
|
||||
import 'package:jmap_dart_client/http/converter/properties_converter.dart';
|
||||
@@ -13,7 +12,6 @@ import 'package:json_annotation/json_annotation.dart';
|
||||
part 'get_forward_method.g.dart';
|
||||
|
||||
@IdConverter()
|
||||
@ForwardIdConverter()
|
||||
@AccountIdConverter()
|
||||
@PropertiesConverter()
|
||||
@JsonSerializable(explicitToJson: true)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:forward/forward/converter/forward_id_coverter.dart';
|
||||
import 'package:forward/forward/converter/forward_id_nullable_converter.dart';
|
||||
import 'package:forward/forward/forward.dart';
|
||||
import 'package:forward/forward/forward_id.dart';
|
||||
@@ -6,7 +5,6 @@ import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'tmail_forward.g.dart';
|
||||
|
||||
@ForwardIdConverter()
|
||||
@ForwardIdNullableConverter()
|
||||
@JsonSerializable(explicitToJson: true, includeIfNull: false)
|
||||
class TMailForward extends Forward {
|
||||
|
||||
@@ -296,7 +296,7 @@ packages:
|
||||
description:
|
||||
path: "."
|
||||
ref: upgrade-latest-flutter-version
|
||||
resolved-ref: "75ad24397dee8606a648a1858f6bba009c1aa1d8"
|
||||
resolved-ref: "9be1a7b3b4a8fbe93fa4b8cf12795f8110de0c06"
|
||||
url: "https://github.com/linagora/jmap-dart-client.git"
|
||||
source: git
|
||||
version: "0.0.1"
|
||||
|
||||
@@ -64,8 +64,7 @@ void main() {
|
||||
},
|
||||
headers: {
|
||||
"accept": "application/json;jmapVersion=rfc-8621",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"content-length": 212
|
||||
"content-length": 292
|
||||
});
|
||||
|
||||
final httpClient = HttpClient(dio);
|
||||
|
||||
@@ -98,8 +98,7 @@ void main() {
|
||||
},
|
||||
headers: {
|
||||
"accept": "application/json;jmapVersion=rfc-8621",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"content-length": 420
|
||||
"content-length": 765
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user