From c8b8f39e20ac8294874ece633890f8d81c500bb2 Mon Sep 17 00:00:00 2001 From: Shahroz Khan Date: Fri, 15 Nov 2024 01:27:10 +0500 Subject: [PATCH] added test --- test/customer_io_test.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/customer_io_test.dart b/test/customer_io_test.dart index c76d2e7..c7f6bbf 100644 --- a/test/customer_io_test.dart +++ b/test/customer_io_test.dart @@ -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'};