File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ import 'package:instabug_flutter/CrashReporting.dart';
1212import 'package:instabug_flutter/FeatureRequests.dart' ;
1313import 'package:instabug_flutter/Instabug.dart' ;
1414import 'package:instabug_flutter/InstabugLog.dart' ;
15+ import 'package:instabug_flutter/NetworkLogger.dart' ;
1516import 'package:instabug_flutter/Replies.dart' ;
1617import 'package:instabug_flutter/Surveys.dart' ;
1718import 'package:instabug_flutter/models/crash_data.dart' ;
1819import 'package:instabug_flutter/models/exception_data.dart' ;
20+ import 'package:instabug_flutter/models/network_data.dart' ;
1921import 'package:instabug_flutter/utils/platform_manager.dart' ;
2022import 'package:mockito/annotations.dart' ;
2123import 'package:mockito/mockito.dart' ;
@@ -820,6 +822,18 @@ void main() {
820822 ]);
821823 });
822824
825+ test ('networkLog: Test' , () async {
826+ final data = NetworkData (method: 'method' , url: 'url' , startTime: DateTime .now ());
827+ final List <dynamic > args = < dynamic > [data.toMap ()];
828+ NetworkLogger .networkLog (data);
829+ expect (log, < Matcher > [
830+ isMethodCall (
831+ 'networkLog:' ,
832+ arguments: args,
833+ )
834+ ]);
835+ });
836+
823837 test ('setCrashReportingEnabled: Test' , () async {
824838 const isEnabled = false ;
825839 final List <dynamic > args = < dynamic > [isEnabled];
You can’t perform that action at this time.
0 commit comments