@@ -1451,7 +1451,8 @@ describe('EppoClient config', () => {
1451
1451
forceReinitialize : true ,
1452
1452
apiKey : 'zCsQuoHJxVPp895.ZWg9MTIzNDU2LmUudGVzdGluZy5lcHBvLmNsb3Vk' ,
1453
1453
assignmentLogger : td . object < IAssignmentLogger > ( ) ,
1454
- eventIngestionConfig : {
1454
+ eventTracking : {
1455
+ enabled : true ,
1455
1456
deliveryIntervalMs : 1 ,
1456
1457
retryIntervalMs : 2 ,
1457
1458
maxRetryDelayMs : 3 ,
@@ -1758,28 +1759,25 @@ describe('enableOverrides', () => {
1758
1759
expect ( assignment ) . toBe ( 'override-value' ) ;
1759
1760
} ) ;
1760
1761
1761
- describe ( 'eventIngestionConfig ' , ( ) => {
1762
- it ( 'should not be used if eventIngestionConfig. disabled is true ' , async ( ) => {
1762
+ describe ( 'eventTracking ' , ( ) => {
1763
+ it ( 'should be disabled by default ' , async ( ) => {
1763
1764
const client = await init ( {
1764
1765
apiKey,
1765
1766
baseUrl : `http://127.0.0.1` ,
1766
1767
assignmentLogger : td . object < IAssignmentLogger > ( ) ,
1767
1768
forceReinitialize : true ,
1768
- eventIngestionConfig : {
1769
- disabled : true ,
1770
- } ,
1771
1769
} ) ;
1772
1770
expect ( client [ 'eventDispatcher' ] ) . toEqual ( NO_OP_EVENT_DISPATCHER ) ;
1773
1771
} ) ;
1774
1772
1775
- it ( 'should be used if eventIngestionConfig.disabled is false ' , async ( ) => {
1773
+ it ( 'should be used if eventTracking.enabled is true ' , async ( ) => {
1776
1774
const client = await init ( {
1777
1775
apiKey,
1778
1776
baseUrl : `http://127.0.0.1` ,
1779
1777
assignmentLogger : td . object < IAssignmentLogger > ( ) ,
1780
1778
forceReinitialize : true ,
1781
- eventIngestionConfig : {
1782
- disabled : false ,
1779
+ eventTracking : {
1780
+ enabled : true ,
1783
1781
} ,
1784
1782
} ) ;
1785
1783
expect ( client [ 'eventDispatcher' ] ) . not . toEqual ( NO_OP_EVENT_DISPATCHER ) ;
0 commit comments