TF-940 Remove path segment jmap in unit test
This commit is contained in:
@@ -29,10 +29,10 @@ void main() {
|
||||
test('autocomplete_tmail_contact method and response parsing', () async {
|
||||
final baseOption = BaseOptions(method: 'POST');
|
||||
final dio = Dio(baseOption)
|
||||
..options.baseUrl = 'http://domain.com';
|
||||
..options.baseUrl = 'http://domain.com/jmap';
|
||||
final dioAdapter = DioAdapter(dio: dio);
|
||||
dioAdapter.onPost(
|
||||
'/jmap',
|
||||
'',
|
||||
(server) => server.reply(200, {
|
||||
"sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
|
||||
"methodResponses": [
|
||||
|
||||
@@ -20,10 +20,10 @@ void main() {
|
||||
|
||||
test('get forward method and response parsing', () async {
|
||||
final baseOption = BaseOptions(method: 'POST');
|
||||
final dio = Dio(baseOption)..options.baseUrl = 'http://domain.com';
|
||||
final dio = Dio(baseOption)..options.baseUrl = 'http://domain.com/jmap';
|
||||
final dioAdapter = DioAdapter(dio: dio);
|
||||
dioAdapter.onPost(
|
||||
'/jmap',
|
||||
'',
|
||||
(server) => server.reply(200, {
|
||||
"sessionState": "abcdefghij",
|
||||
"methodResponses": [
|
||||
|
||||
@@ -22,10 +22,10 @@ void main() {
|
||||
test('set forward method and response parsing', () async {
|
||||
final baseOption = BaseOptions(method: 'POST');
|
||||
final dio = Dio(baseOption)
|
||||
..options.baseUrl = 'http://domain.com';
|
||||
..options.baseUrl = 'http://domain.com/jmap';
|
||||
final dioAdapter = DioAdapter(dio: dio);
|
||||
dioAdapter.onPost(
|
||||
'/jmap',
|
||||
'',
|
||||
(server) => server.reply(200, {
|
||||
"sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
|
||||
"methodResponses": [
|
||||
|
||||
@@ -40,10 +40,10 @@ void main() {
|
||||
|
||||
test('get rule_filter method and response parsing', () async {
|
||||
final baseOption = BaseOptions(method: 'POST');
|
||||
final dio = Dio(baseOption)..options.baseUrl = 'http://domain.com';
|
||||
final dio = Dio(baseOption)..options.baseUrl = 'http://domain.com/jmap';
|
||||
final dioAdapter = DioAdapter(dio: dio);
|
||||
dioAdapter.onPost(
|
||||
'/jmap',
|
||||
'',
|
||||
(server) => server.reply(200, {
|
||||
"sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
|
||||
"methodResponses": [
|
||||
|
||||
@@ -36,10 +36,10 @@ void main() {
|
||||
|
||||
test('set rule_filter method and response parsing', () async {
|
||||
final baseOption = BaseOptions(method: 'POST');
|
||||
final dio = Dio(baseOption)..options.baseUrl = 'http://domain.com';
|
||||
final dio = Dio(baseOption)..options.baseUrl = 'http://domain.com/jmap';
|
||||
final dioAdapter = DioAdapter(dio: dio);
|
||||
dioAdapter.onPost(
|
||||
'/jmap',
|
||||
'',
|
||||
(server) => server.reply(200, {
|
||||
"sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
|
||||
"methodResponses": [
|
||||
|
||||
Reference in New Issue
Block a user