diff --git a/packages/aws-amplify/__tests__/Analytics/Providers/AWSKinesisProvider-unit-test.ts b/packages/aws-amplify/__tests__/Analytics/Providers/AWSKinesisProvider-unit-test.ts index 10428914ee8..500cfefefbb 100644 --- a/packages/aws-amplify/__tests__/Analytics/Providers/AWSKinesisProvider-unit-test.ts +++ b/packages/aws-amplify/__tests__/Analytics/Providers/AWSKinesisProvider-unit-test.ts @@ -44,7 +44,7 @@ describe('kinesis provider test', () => { test('happy case', () => { const analytics = new KinesisProvider(); - expect(analytics.configure({region: 'region1'})).toEqual({region: 'region1'}); + expect(analytics.configure({region: 'region1'})).toEqual({"bufferSize": 1000, "flushInterval": 5000, "flushSize": 100, "region": "region1", "resendLimit": 5}); }); }); diff --git a/packages/aws-amplify/src/Analytics/Providers/AWSKinesisProvider.ts b/packages/aws-amplify/src/Analytics/Providers/AWSKinesisProvider.ts index ba70d2b67bb..d4533b6f4a5 100644 --- a/packages/aws-amplify/src/Analytics/Providers/AWSKinesisProvider.ts +++ b/packages/aws-amplify/src/Analytics/Providers/AWSKinesisProvider.ts @@ -158,7 +158,7 @@ export default class AWSKinesisProvider implements AnalyticsProvider { private _sendEvents(group) { if (group.length === 0) { - //logger.debug('events array is empty, directly return'); + // logger.debug('events array is empty, directly return'); return; }