From 47e1766fc3ec1a3a82c2c4c90c30135af5c8b434 Mon Sep 17 00:00:00 2001 From: hangyu Date: Fri, 16 Aug 2024 13:05:21 -0700 Subject: [PATCH] test --- pkgs/unified_analytics/CHANGELOG.md | 1 + pkgs/unified_analytics/test/event_test.dart | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/unified_analytics/CHANGELOG.md b/pkgs/unified_analytics/CHANGELOG.md index 4b263825..7b3fddf0 100644 --- a/pkgs/unified_analytics/CHANGELOG.md +++ b/pkgs/unified_analytics/CHANGELOG.md @@ -1,6 +1,7 @@ ## 6.1.4-wip - Fix formatting and remove dependency on `package:intl`. +- Add more parameters (androidAppId and iosBundleId) in devtools events. ## 6.1.3 diff --git a/pkgs/unified_analytics/test/event_test.dart b/pkgs/unified_analytics/test/event_test.dart index ddfb4e73..ad322a38 100644 --- a/pkgs/unified_analytics/test/event_test.dart +++ b/pkgs/unified_analytics/test/event_test.dart @@ -588,6 +588,8 @@ void main() { rootSetCount: 123, rowCount: 123, inspectorTreeControllerId: 123, + androidAppId: 'androidAppId', + iosBundleId: 'iosBundleId', ); final constructedEvent = generateEvent(); @@ -623,7 +625,9 @@ void main() { expect(constructedEvent.eventData['rootSetCount'], 123); expect(constructedEvent.eventData['rowCount'], 123); expect(constructedEvent.eventData['inspectorTreeControllerId'], 123); - expect(constructedEvent.eventData.length, 28); + expect(constructedEvent.eventData['androidAppId'], 'androidAppId'); + expect(constructedEvent.eventData['iosBundleId'], 'iosBundleId'); + expect(constructedEvent.eventData.length, 29); }); test('Confirm all constructors were checked', () {