@@ -53,7 +53,7 @@ describe('lib/core/bucketer', function() {
53
53
experimentKey : configObj . experiments [ 0 ] . key ,
54
54
trafficAllocationConfig : configObj . experiments [ 0 ] . trafficAllocation ,
55
55
variationIdMap : configObj . variationIdMap ,
56
- experimentKeyMap : configObj . experimentKeyMap ,
56
+ experimentIdMap : configObj . experimentIdMap ,
57
57
groupIdMap : configObj . groupIdMap ,
58
58
logger : createdLogger ,
59
59
} ;
@@ -101,7 +101,7 @@ describe('lib/core/bucketer', function() {
101
101
experimentKey : configObj . experiments [ 0 ] . key ,
102
102
trafficAllocationConfig : configObj . experiments [ 0 ] . trafficAllocation ,
103
103
variationIdMap : configObj . variationIdMap ,
104
- experimentKeyMap : configObj . experimentKeyMap ,
104
+ experimentIdMap : configObj . experimentIdMap ,
105
105
groupIdMap : configObj . groupIdMap ,
106
106
logger : createdLogger ,
107
107
} ;
@@ -120,7 +120,7 @@ describe('lib/core/bucketer', function() {
120
120
experimentKey : configObj . experiments [ 4 ] . key ,
121
121
trafficAllocationConfig : configObj . experiments [ 4 ] . trafficAllocation ,
122
122
variationIdMap : configObj . variationIdMap ,
123
- experimentKeyMap : configObj . experimentKeyMap ,
123
+ experimentIdMap : configObj . experimentIdMap ,
124
124
groupIdMap : configObj . groupIdMap ,
125
125
logger : createdLogger ,
126
126
userId : 'testUser' ,
@@ -220,7 +220,7 @@ describe('lib/core/bucketer', function() {
220
220
221
221
it ( 'should throw an error if group ID is not in the datafile' , function ( ) {
222
222
var bucketerParamsWithInvalidGroupId = cloneDeep ( bucketerParams ) ;
223
- bucketerParamsWithInvalidGroupId . experimentKeyMap [ configObj . experiments [ 4 ] . key ] . groupId = '6969' ;
223
+ bucketerParamsWithInvalidGroupId . experimentIdMap [ configObj . experiments [ 4 ] . id ] . groupId = '6969' ;
224
224
225
225
assert . throws ( function ( ) {
226
226
bucketer . bucket ( bucketerParamsWithInvalidGroupId ) ;
@@ -236,7 +236,7 @@ describe('lib/core/bucketer', function() {
236
236
experimentKey : configObj . experiments [ 6 ] . key ,
237
237
trafficAllocationConfig : configObj . experiments [ 6 ] . trafficAllocation ,
238
238
variationIdMap : configObj . variationIdMap ,
239
- experimentKeyMap : configObj . experimentKeyMap ,
239
+ experimentIdMap : configObj . experimentIdMap ,
240
240
groupIdMap : configObj . groupIdMap ,
241
241
logger : createdLogger ,
242
242
userId : 'testUser' ,
@@ -282,7 +282,7 @@ describe('lib/core/bucketer', function() {
282
282
} ,
283
283
] ,
284
284
variationIdMap : configObj . variationIdMap ,
285
- experimentKeyMap : configObj . experimentKeyMap ,
285
+ experimentIdMap : configObj . experimentIdMap ,
286
286
groupIdMap : configObj . groupIdMap ,
287
287
logger : createdLogger ,
288
288
} ;
@@ -322,7 +322,7 @@ describe('lib/core/bucketer', function() {
322
322
} ,
323
323
] ,
324
324
variationIdMap : configObj . variationIdMap ,
325
- experimentKeyMap : configObj . experimentKeyMap ,
325
+ experimentIdMap : configObj . experimentIdMap ,
326
326
groupIdMap : configObj . groupIdMap ,
327
327
logger : createdLogger ,
328
328
} ;
@@ -370,7 +370,7 @@ describe('lib/core/bucketer', function() {
370
370
bucketerParams = {
371
371
trafficAllocationConfig : configObj . experiments [ 0 ] . trafficAllocation ,
372
372
variationIdMap : configObj . variationIdMap ,
373
- experimentKeyMap : configObj . experimentKeyMap ,
373
+ experimentIdMap : configObj . experimentIdMap ,
374
374
groupIdMap : configObj . groupIdMap ,
375
375
logger : createdLogger ,
376
376
} ;
0 commit comments