Skip to content

Commit

Permalink
Merge pull request #293 from Countly/test-patches
Browse files Browse the repository at this point in the history
Patched tests
  • Loading branch information
turtledreams authored Nov 7, 2024
2 parents 35c73c1 + ec0c593 commit 8d87e94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* Updated underlying Android SDK version to 24.7.5
* Updated underlying iOS SDK version to 24.7.7

From this version on NP variant changelogs will be added to `-np` branches!

## 24.7.1
* Added a new configuration option `enableTemporaryDeviceIDMode` to 'CountlyConfig' interface
* Introduced a new `deviceID` interface for grouping device ID management related methods:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,16 @@ void main() {
expect(queryParams['events']?[0].contains('event1'), true);
expect(queryParams['events']?[0].contains('event2'), true);
expect(queryParams['events']?[0].contains('event3'), true);
if (Platform.isAndroid) {
var seg = '"normalInt":1,"stringList":["value1","value2","value3"],"intList":[1,2,3],"doubleList":[1.1,2.2,3.3],"normalString":"normalString","normalDouble":1.1,"boolList":[true,false,true],"normalBool":true';
expect(queryParams['events']?[0].contains(seg), true);
} else {
expect(queryParams['events']?[0].contains('normalInt'), true);
expect(queryParams['events']?[0].contains('stringList'), true);
expect(queryParams['events']?[0].contains('intList'), true);
expect(queryParams['events']?[0].contains('doubleList'), true);
expect(queryParams['events']?[0].contains('normalString'), true);
expect(queryParams['events']?[0].contains('normalDouble'), true);
expect(queryParams['events']?[0].contains('boolList'), true);
expect(queryParams['events']?[0].contains('normalBool'), true);
}
expect(queryParams['events']?[0].contains('normalInt'), true);
expect(queryParams['events']?[0].contains('stringList'), true);
expect(queryParams['events']?[0].contains('intList'), true);
expect(queryParams['events']?[0].contains('doubleList'), true);
expect(queryParams['events']?[0].contains('normalString'), true);
expect(queryParams['events']?[0].contains('normalDouble'), true);
expect(queryParams['events']?[0].contains('boolList'), true);
expect(queryParams['events']?[0].contains('normalBool'), true);
expect(queryParams['events']?[0].contains('nestedList'), true);
expect(queryParams['events']?[0].contains('mapList'), true);
} else if (i == 3) {
expect(queryParams['user_details']?[0], '{"custom":{"key1":"on"}}');
}
Expand Down

0 comments on commit 8d87e94

Please sign in to comment.