Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed Nov 14, 2024
1 parent 4946541 commit c8b8f39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/customer_io_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ void main() {
.called(1);
});

test('registerDeviceToken() calls platform', () {
const token = 'abc';
CustomerIO.instance.registerDeviceToken(deviceToken: token);
verify(mockPlatform.registerDeviceToken(deviceToken: token)).called(1);
});

test('track() correct arguments are passed', () {
const name = 'itemAddedToCart';
final givenAttributes = {'name': 'John Doe'};
Expand Down

0 comments on commit c8b8f39

Please sign in to comment.