@@ -263,38 +263,6 @@ describe('DecisionService', () => {
263
263
} ) ;
264
264
265
265
describe ( 'when a user profile service is provided' , function ( ) {
266
- // var fakeDecisionResponse = {
267
- // result: '111128',
268
- // reasons: [],
269
- // };
270
- // var userProfileServiceInstance = null;
271
- // var userProfileLookupStub;
272
- // var userProfileSaveStub;
273
- // var fakeDecisionWhitelistedVariation = {
274
- // result: null,
275
- // reasons: [],
276
- // }
277
- // beforeEach(function() {
278
- // userProfileServiceInstance = {
279
- // lookup: function() {},
280
- // save: function() {},
281
- // };
282
-
283
- // decisionServiceInstance = createDecisionService({
284
- // logger: mockLogger,
285
- // userProfileService: userProfileServiceInstance,
286
- // });
287
- // userProfileLookupStub = sinon.stub(userProfileServiceInstance, 'lookup');
288
- // userProfileSaveStub = sinon.stub(userProfileServiceInstance, 'save');
289
- // sinon.stub(decisionServiceInstance, 'getWhitelistedVariation').returns(fakeDecisionWhitelistedVariation);
290
- // });
291
-
292
- // afterEach(function() {
293
- // userProfileServiceInstance.lookup.restore();
294
- // userProfileServiceInstance.save.restore();
295
- // decisionServiceInstance.getWhitelistedVariation.restore();
296
- // });
297
-
298
266
beforeEach ( ( ) => {
299
267
mockBucket . mockClear ( ) ;
300
268
} ) ;
@@ -593,8 +561,6 @@ describe('DecisionService', () => {
593
561
expect ( logger ?. error ) . toHaveBeenCalledWith ( USER_PROFILE_SAVE_ERROR , 'decision_service_user' , 'I am an error' ) ;
594
562
} ) ;
595
563
596
-
597
- // describe('when passing `attributes.$opt_experiment_bucket_map`', function() {
598
564
it ( 'should respect $opt_experiment_bucket_map attribute over the userProfileService for the matching experiment id' , function ( ) {
599
565
const { decisionService, userProfileService, logger } = getDecisionService ( { userProfileService : true , logger : true } ) ;
600
566
@@ -721,4 +687,9 @@ describe('DecisionService', () => {
721
687
} ) ;
722
688
} ) ;
723
689
} ) ;
690
+
691
+ const featureTestData
692
+ describe ( 'getVariationForFeature' , ( ) => {
693
+
694
+ } ) ;
724
695
} ) ;
0 commit comments