TF-836: add unit_test in bitrise
This commit is contained in:
+2
-38
@@ -1,39 +1,3 @@
|
||||
<!--
|
||||
This README describes the package. If you publish this package to pub.dev,
|
||||
this README's contents appear on the landing page for your package.
|
||||
# forward
|
||||
|
||||
For information about how to write a good package README, see the guide for
|
||||
[writing package pages](https://dart.dev/guides/libraries/writing-package-pages).
|
||||
|
||||
For general information about developing packages, see the Dart guide for
|
||||
[creating packages](https://dart.dev/guides/libraries/create-library-packages)
|
||||
and the Flutter guide for
|
||||
[developing packages and plugins](https://flutter.dev/developing-packages).
|
||||
-->
|
||||
|
||||
TODO: Put a short description of the package here that helps potential users
|
||||
know whether this package might be useful for them.
|
||||
|
||||
## Features
|
||||
|
||||
TODO: List what your package can do. Maybe include images, gifs, or videos.
|
||||
|
||||
## Getting started
|
||||
|
||||
TODO: List prerequisites and provide or point to information on how to
|
||||
start using the package.
|
||||
|
||||
## Usage
|
||||
|
||||
TODO: Include short and useful examples for package users. Add longer examples
|
||||
to `/example` folder.
|
||||
|
||||
```dart
|
||||
const like = 'sample';
|
||||
```
|
||||
|
||||
## Additional information
|
||||
|
||||
TODO: Tell users more about the package: where to find more information, how to
|
||||
contribute to the package, how to file issues, what response they can expect
|
||||
from the package authors, and more.
|
||||
TMail Forward extension
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:forward/forward/converter/rule_filter_id_coverter.dart';
|
||||
import 'package:forward/forward/converter/forward_id_coverter.dart';
|
||||
import 'package:jmap_dart_client/http/converter/id_converter.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/id.dart';
|
||||
|
||||
@@ -11,8 +11,6 @@ enum ForwardIdType {
|
||||
final String value;
|
||||
}
|
||||
|
||||
@ForwardIdConverter()
|
||||
@IdConverter()
|
||||
class ForwardId with EquatableMixin {
|
||||
final Id id;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'package:forward/forward/capability_forward.dart';
|
||||
import 'package:forward/forward/converter/rule_filter_id_coverter.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';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:forward/forward/converter/rule_filter_id_coverter.dart';
|
||||
import 'package:forward/forward/converter/forward_id_coverter.dart';
|
||||
import 'package:forward/forward/forward.dart';
|
||||
import 'package:forward/forward/forward_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email_address.dart';
|
||||
|
||||
@@ -77,7 +77,7 @@ void main() {
|
||||
|
||||
final getForwardMethod = GetForwardMethod(accountId)
|
||||
..addIds({ForwardIdSingleton.forwardIdSingleton.id});
|
||||
final getRuleFilterInvocation =
|
||||
final getForwardInvocation =
|
||||
requestBuilder.invocation(getForwardMethod);
|
||||
final response = await (requestBuilder
|
||||
..usings(getForwardMethod.requiredCapabilities))
|
||||
@@ -85,7 +85,7 @@ void main() {
|
||||
.execute();
|
||||
|
||||
final resultList = response.parse<GetForwardResponse>(
|
||||
getRuleFilterInvocation.methodCallId,
|
||||
getForwardInvocation.methodCallId,
|
||||
GetForwardResponse.deserialize);
|
||||
|
||||
expect(resultList?.list.length, equals(1));
|
||||
|
||||
Reference in New Issue
Block a user