You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.strictEqual(mockLogger.log.args[1][1],'DECISION_SERVICE: Returning previously activated variation \"variation\" of experiment \"testExperiment\" for user \"decision_service_user\" from user profile.');
297
297
});
298
298
299
-
it('should respect ignore attributes for a different experiment id',function(){
299
+
it('should ignore attributes for a different experiment id',function(){
300
300
userProfileLookupStub.returns({
301
301
user_id: 'decision_service_user',
302
302
experiment_bucket_map: {
303
-
'111127': {
303
+
'111127': {// 'testExperiment' ID
304
304
'variation_id': '111128'// ID of the 'control' variation
305
305
},
306
306
},
307
307
});
308
308
309
309
varattributes={
310
310
$opt_experiment_bucket_map: {
311
-
'122227': {
311
+
'122227': {// other experiment ID
312
312
'variation_id': '122229'// ID of the 'variationWithAudience' variation
assert.strictEqual(mockLogger.log.args[1][1],'DECISION_SERVICE: Returning previously activated variation \"control\" of experiment \"testExperiment\" for user \"decision_service_user\" from user profile.');
322
322
});
323
323
324
-
it('should use attributes when the userProfileLookup returns null',function(){
324
+
it('should use attributes when the userProfileLookup variations for other experiments',function(){
325
325
userProfileLookupStub.returns({
326
326
user_id: 'decision_service_user',
327
327
experiment_bucket_map: {
328
-
'122227': {
328
+
'122227': {// other experiment ID
329
329
'variation_id': '122229'// ID of the 'variationWithAudience' variation
330
330
},
331
331
}
332
332
});
333
333
334
334
varattributes={
335
335
$opt_experiment_bucket_map: {
336
-
'111127': {
336
+
'111127': {// 'testExperiment' ID
337
337
'variation_id': '111129'// ID of the 'variation' variation
assert.strictEqual(mockLogger.log.args[1][1],'DECISION_SERVICE: Returning previously activated variation \"variation\" of experiment \"testExperiment\" for user \"decision_service_user\" from user profile.');
347
347
});
348
348
349
-
it('should use attributes when the userProfileLookup variations for other experiments',function(){
349
+
it('should use attributes when the userProfileLookup returns null',function(){
0 commit comments