@@ -316,8 +316,8 @@ const getHoldoutDatafile = () => {
316316 id : 'holdout_id_1' ,
317317 key : 'holdout_1' ,
318318 status : 'Running' ,
319- includeFlags : [ ] ,
320- excludeFlags : [ ] ,
319+ includedFlags : [ ] ,
320+ excludedFlags : [ ] ,
321321 audienceIds : [ '13389130056' ] ,
322322 audienceConditions : [ 'or' , '13389130056' ] ,
323323 variations : [
@@ -338,8 +338,8 @@ const getHoldoutDatafile = () => {
338338 id : 'holdout_id_2' ,
339339 key : 'holdout_2' ,
340340 status : 'Running' ,
341- includeFlags : [ ] ,
342- excludeFlags : [ 'feature_3' ] ,
341+ includedFlags : [ ] ,
342+ excludedFlags : [ 'feature_3' ] ,
343343 audienceIds : [ ] ,
344344 audienceConditions : [ ] ,
345345 variations : [
@@ -360,8 +360,8 @@ const getHoldoutDatafile = () => {
360360 id : 'holdout_id_3' ,
361361 key : 'holdout_3' ,
362362 status : 'Draft' ,
363- includeFlags : [ 'feature_1' ] ,
364- excludeFlags : [ ] ,
363+ includedFlags : [ 'feature_1' ] ,
364+ excludedFlags : [ ] ,
365365 audienceIds : [ ] ,
366366 audienceConditions : [ ] ,
367367 variations : [
@@ -415,8 +415,8 @@ describe('createProjectConfig - holdouts, feature toggle is on', () => {
415415
416416 expect ( configObj . globalHoldouts ) . toHaveLength ( 2 ) ;
417417 expect ( configObj . globalHoldouts ) . toEqual ( [
418- configObj . holdouts [ 0 ] , // holdout_1 has empty includeFlags
419- configObj . holdouts [ 1 ] // holdout_2 has empty includeFlags
418+ configObj . holdouts [ 0 ] , // holdout_1 has empty includedFlags
419+ configObj . holdouts [ 1 ] // holdout_2 has empty includedFlags
420420 ] ) ;
421421
422422 expect ( configObj . includedHoldouts ) . toEqual ( {
@@ -443,16 +443,16 @@ describe('createProjectConfig - holdouts, feature toggle is on', () => {
443443 expect ( configObj . flagHoldoutsMap ) . toEqual ( { } ) ;
444444 } ) ;
445445
446- it ( 'should handle undefined includeFlags and excludeFlags in holdout' , function ( ) {
446+ it ( 'should handle undefined includedFlags and excludedFlags in holdout' , function ( ) {
447447 const datafile = getHoldoutDatafile ( ) ;
448- datafile . holdouts [ 0 ] . includeFlags = undefined ;
449- datafile . holdouts [ 0 ] . excludeFlags = undefined ;
448+ datafile . holdouts [ 0 ] . includedFlags = undefined ;
449+ datafile . holdouts [ 0 ] . excludedFlags = undefined ;
450450
451451 const configObj = projectConfig . createProjectConfig ( JSON . parse ( JSON . stringify ( datafile ) ) ) ;
452452
453453 expect ( configObj . holdouts ) . toHaveLength ( 3 ) ;
454- expect ( configObj . holdouts [ 0 ] . includeFlags ) . toEqual ( [ ] ) ;
455- expect ( configObj . holdouts [ 0 ] . excludeFlags ) . toEqual ( [ ] ) ;
454+ expect ( configObj . holdouts [ 0 ] . includedFlags ) . toEqual ( [ ] ) ;
455+ expect ( configObj . holdouts [ 0 ] . excludedFlags ) . toEqual ( [ ] ) ;
456456 } ) ;
457457} ) ;
458458
0 commit comments