@@ -22,27 +22,25 @@ export function assertSyncRecorderCacheInterface(cache: IEventsCacheSync | IImpr
2222
2323// Split mocks
2424
25- //@ts -ignore
26- export const splitWithUserTT : ISplit = { name : 'user_ff' , trafficTypeName : 'user_tt' , conditions : [ ] } ;
27- //@ts -ignore
28- export const splitWithAccountTT : ISplit = { name : 'account_ff' , trafficTypeName : 'account_tt' , conditions : [ ] } ;
29- //@ts -ignore
30- export const splitWithAccountTTAndUsesSegments : ISplit = { trafficTypeName : 'account_tt' , conditions : [ { matcherGroup : { matchers : [ { matcherType : 'IN_SEGMENT' , userDefinedSegmentMatcherData : { segmentName : 'employees' } } ] } } ] } ;
31- //@ts -ignore
32- export const something : ISplit = { name : 'something' } ;
33- //@ts -ignore
25+
26+ export const ALWAYS_ON_SPLIT : ISplit = { 'trafficTypeName' : 'user' , 'name' : 'always-on' , 'trafficAllocation' : 100 , 'trafficAllocationSeed' : 1012950810 , 'seed' : - 725161385 , 'status' : 'ACTIVE' , 'killed' : false , 'defaultTreatment' : 'off' , 'changeNumber' : 1494364996459 , 'conditions' : [ { 'conditionType' : 'ROLLOUT' , 'matcherGroup' : { 'combiner' : 'AND' , 'matchers' : [ { 'keySelector' : { 'trafficType' : 'user' , 'attribute' : null } , 'matcherType' : 'ALL_KEYS' , 'negate' : false , 'userDefinedSegmentMatcherData' : null , 'whitelistMatcherData' : null , 'unaryNumericMatcherData' : null , 'betweenMatcherData' : null } ] } , 'partitions' : [ { 'treatment' : 'on' , 'size' : 100 } , { 'treatment' : 'off' , 'size' : 0 } ] , 'label' : 'in segment all' } ] , 'sets' : [ ] } ;
27+ export const ALWAYS_OFF_SPLIT : ISplit = { 'trafficTypeName' : 'user' , 'name' : 'always-off' , 'trafficAllocation' : 100 , 'trafficAllocationSeed' : - 331690370 , 'seed' : 403891040 , 'status' : 'ACTIVE' , 'killed' : false , 'defaultTreatment' : 'on' , 'changeNumber' : 1494365020316 , 'conditions' : [ { 'conditionType' : 'ROLLOUT' , 'matcherGroup' : { 'combiner' : 'AND' , 'matchers' : [ { 'keySelector' : { 'trafficType' : 'user' , 'attribute' : null } , 'matcherType' : 'ALL_KEYS' , 'negate' : false , 'userDefinedSegmentMatcherData' : null , 'whitelistMatcherData' : null , 'unaryNumericMatcherData' : null , 'betweenMatcherData' : null } ] } , 'partitions' : [ { 'treatment' : 'on' , 'size' : 0 } , { 'treatment' : 'off' , 'size' : 100 } ] , 'label' : 'in segment all' } ] , 'sets' : [ ] } ; //@ts -ignore
28+ export const splitWithUserTT : ISplit = { name : 'user_ff' , trafficTypeName : 'user_tt' , conditions : [ ] } ; //@ts -ignore
29+ export const splitWithAccountTT : ISplit = { name : 'account_ff' , trafficTypeName : 'account_tt' , conditions : [ ] } ; //@ts -ignore
30+ export const splitWithAccountTTAndUsesSegments : ISplit = { trafficTypeName : 'account_tt' , conditions : [ { matcherGroup : { matchers : [ { matcherType : 'IN_SEGMENT' , userDefinedSegmentMatcherData : { segmentName : 'employees' } } ] } } ] } ; //@ts -ignore
31+ export const something : ISplit = { name : 'something' } ; //@ts -ignore
3432export const somethingElse : ISplit = { name : 'something else' } ;
3533
3634// - With flag sets
3735
3836//@ts -ignore
3937export const featureFlagWithEmptyFS : ISplit = { name : 'ff_empty' , sets : [ ] } ;
4038//@ts -ignore
41- export const featureFlagOne : ISplit = { name : 'ff_one' , sets : [ 'o' , 'n' , 'e' ] } ;
39+ export const featureFlagOne : ISplit = { name : 'ff_one' , sets : [ 'o' , 'n' , 'e' ] } ;
4240//@ts -ignore
43- export const featureFlagTwo : ISplit = { name : 'ff_two' , sets : [ 't' , 'w' , 'o' ] } ;
41+ export const featureFlagTwo : ISplit = { name : 'ff_two' , sets : [ 't' , 'w' , 'o' ] } ;
4442//@ts -ignore
45- export const featureFlagThree : ISplit = { name : 'ff_three' , sets : [ 't' , 'h' , 'r' , 'e' ] } ;
43+ export const featureFlagThree : ISplit = { name : 'ff_three' , sets : [ 't' , 'h' , 'r' , 'e' ] } ;
4644//@ts -ignore
4745export const featureFlagWithoutFS : ISplit = { name : 'ff_four' } ;
4846
0 commit comments