From 87db8b4f4957503931663408152cb72cfc28e646 Mon Sep 17 00:00:00 2001 From: Illya Tsai Date: Mon, 6 May 2024 18:59:12 +0300 Subject: [PATCH] fix --- .../test/rudderstack/sdk/deriv_rudderstack_sdk_test.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/analytics/test/rudderstack/sdk/deriv_rudderstack_sdk_test.dart b/packages/analytics/test/rudderstack/sdk/deriv_rudderstack_sdk_test.dart index 09a2fa742..5e14994e6 100644 --- a/packages/analytics/test/rudderstack/sdk/deriv_rudderstack_sdk_test.dart +++ b/packages/analytics/test/rudderstack/sdk/deriv_rudderstack_sdk_test.dart @@ -34,20 +34,21 @@ void main() { test('track calls rudderClient.track', () async { const String eventName = 'test_event_name'; - + const Map properties = {}; final bool result = await derivRudderstack.track(eventName: eventName, properties: {}); expect(result, isTrue); - verify(() => mockRudderController.track(eventName)).called(1); + verify(() => mockRudderController.track(eventName, properties: RudderProperty.fromMap(properties))).called(1); }); test('track calls rudderClient.track', () async { const String eventName = 'test_event_name'; + const Map properties = {}; final bool result = await derivRudderstack.track(eventName: eventName, properties: {}); expect(result, isTrue); - verify(() => mockRudderController.track(eventName)).called(1); + verify(() => mockRudderController.track(eventName, properties: RudderProperty.fromMap(properties))).called(1); }); test('screen calls rudderClient.screen', () async {