From dab1ce179574cce8617b06e56a7f775cc0ac4b86 Mon Sep 17 00:00:00 2001 From: nisarg desai Date: Tue, 19 Jul 2022 14:37:05 -0500 Subject: [PATCH] fix Unit test Case for Release --- test/newrelic_mobile_test.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/newrelic_mobile_test.dart b/test/newrelic_mobile_test.dart index 3cbd8e0..f0e7142 100644 --- a/test/newrelic_mobile_test.dart +++ b/test/newrelic_mobile_test.dart @@ -11,7 +11,6 @@ import 'package:newrelic_mobile/newrelic_dt_trace.dart'; import 'package:newrelic_mobile/newrelic_mobile.dart'; import 'package:newrelic_mobile/newrelic_navigation_observer.dart'; import 'package:newrelic_mobile/utils/platform_manager.dart'; -import 'package:stack_trace/stack_trace.dart'; import 'newrelic_mobile_test.mocks.dart'; @@ -310,9 +309,7 @@ void main() { PlatformManager.setPlatformInstance(platformManger); when(platformManger.isAndroid()).thenAnswer((realInvocation) => false); NewrelicMobile.setInteractionName(interActionName); - final Map params = { - 'interactionName': interActionName, - }; + expect(methodCalLogs, []); }); @@ -641,7 +638,7 @@ void main() { Map attributes = { 'methodType': 'didReplace', - 'from': '', + 'from': '/', 'to': nextRouteName };