Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Nov 7, 2024
1 parent ea5dc75 commit b1caf0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/customer_io_method_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ void main() {

test('track() should call platform method with correct arguments', () async {
final Map<String, dynamic> args = {
'eventName': 'test_event',
'attributes': {'eventData': 2}
'name': 'test_event',
'properties': {'eventData': 2}
};

final customerIO = CustomerIOMethodChannel();
customerIO.track(name: args['eventName'], properties: args['attributes']);
customerIO.track(name: args['name'], properties: args['properties']);

expectMethodInvocationArguments('track', args);
});
Expand Down
2 changes: 1 addition & 1 deletion test/customer_io_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void main() {
expect(
verify(mockPlatform.track(
name: captureAnyNamed("name"),
properties: captureAnyNamed("attributes"),
properties: captureAnyNamed("properties"),
)).captured,
[name, givenAttributes],
);
Expand Down

0 comments on commit b1caf0b

Please sign in to comment.