@@ -3136,8 +3136,8 @@ describe('lib/optimizely', function() {
3136
3136
} ) ;
3137
3137
} ) ;
3138
3138
3139
- it ( 'returns the right value from getFeatureVariableJson and send notification with featureEnabled true' , function ( ) {
3140
- var result = optlyInstance . getFeatureVariableJson (
3139
+ it ( 'returns the right value from getFeatureVariableJSON and send notification with featureEnabled true' , function ( ) {
3140
+ var result = optlyInstance . getFeatureVariableJSON (
3141
3141
'test_feature_for_experiment' ,
3142
3142
'button_info' ,
3143
3143
'user1' ,
@@ -3334,8 +3334,8 @@ describe('lib/optimizely', function() {
3334
3334
} ) ;
3335
3335
} ) ;
3336
3336
3337
- it ( 'returns the default value from getFeatureVariableJson and send notification with featureEnabled false' , function ( ) {
3338
- var result = optlyInstance . getFeatureVariableJson (
3337
+ it ( 'returns the default value from getFeatureVariableJSON and send notification with featureEnabled false' , function ( ) {
3338
+ var result = optlyInstance . getFeatureVariableJSON (
3339
3339
'test_feature_for_experiment' ,
3340
3340
'button_info' ,
3341
3341
'user1' ,
@@ -3621,8 +3621,8 @@ describe('lib/optimizely', function() {
3621
3621
} ) ;
3622
3622
} ) ;
3623
3623
3624
- it ( 'should return the right value from getFeatureVariableJson and send notification with featureEnabled true' , function ( ) {
3625
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature' , 'message_info' , 'user1' , {
3624
+ it ( 'should return the right value from getFeatureVariableJSON and send notification with featureEnabled true' , function ( ) {
3625
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature' , 'message_info' , 'user1' , {
3626
3626
test_attribute : 'test_value' ,
3627
3627
} ) ;
3628
3628
assert . deepEqual ( result , {
@@ -3894,8 +3894,8 @@ describe('lib/optimizely', function() {
3894
3894
} ) ;
3895
3895
} ) ;
3896
3896
3897
- it ( 'should return the default value from getFeatureVariableJson and send notification with featureEnabled false' , function ( ) {
3898
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature' , 'message_info' , 'user1' , {
3897
+ it ( 'should return the default value from getFeatureVariableJSON and send notification with featureEnabled false' , function ( ) {
3898
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature' , 'message_info' , 'user1' , {
3899
3899
test_attribute : 'test_value' ,
3900
3900
} ) ;
3901
3901
assert . deepEqual ( result , {
@@ -4181,8 +4181,8 @@ describe('lib/optimizely', function() {
4181
4181
} ) ;
4182
4182
} ) ;
4183
4183
4184
- it ( 'returns the variable default value from getFeatureVariableJson and send notification with featureEnabled false' , function ( ) {
4185
- var result = optlyInstance . getFeatureVariableJson (
4184
+ it ( 'returns the variable default value from getFeatureVariableJSON and send notification with featureEnabled false' , function ( ) {
4185
+ var result = optlyInstance . getFeatureVariableJSON (
4186
4186
'test_feature_for_experiment' ,
4187
4187
'button_info' ,
4188
4188
'user1' ,
@@ -5065,8 +5065,8 @@ describe('lib/optimizely', function() {
5065
5065
) ;
5066
5066
} ) ;
5067
5067
5068
- it ( 'returns the right value from getFeatureVariableJson ' , function ( ) {
5069
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_info' , 'user1' , {
5068
+ it ( 'returns the right value from getFeatureVariableJSON ' , function ( ) {
5069
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_info' , 'user1' , {
5070
5070
test_attribute : 'test_value' ,
5071
5071
} ) ;
5072
5072
assert . deepEqual ( result , {
@@ -5252,8 +5252,8 @@ describe('lib/optimizely', function() {
5252
5252
) ;
5253
5253
} ) ;
5254
5254
5255
- it ( 'returns the variable default value from getFeatureVariableJson ' , function ( ) {
5256
- var result = optlyInstance . getFeatureVariableJson (
5255
+ it ( 'returns the variable default value from getFeatureVariableJSON ' , function ( ) {
5256
+ var result = optlyInstance . getFeatureVariableJSON (
5257
5257
'test_feature_for_experiment' ,
5258
5258
'button_info' ,
5259
5259
'user1' ,
@@ -5450,8 +5450,8 @@ describe('lib/optimizely', function() {
5450
5450
) ;
5451
5451
} ) ;
5452
5452
5453
- it ( 'returns the variable default value from getFeatureVariableJson ' , function ( ) {
5454
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_info' , 'user1' , {
5453
+ it ( 'returns the variable default value from getFeatureVariableJSON ' , function ( ) {
5454
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_info' , 'user1' , {
5455
5455
test_attribute : 'test_value' ,
5456
5456
} ) ;
5457
5457
assert . deepEqual ( result , {
@@ -5634,8 +5634,8 @@ describe('lib/optimizely', function() {
5634
5634
) ;
5635
5635
} ) ;
5636
5636
5637
- it ( 'returns the right value from getFeatureVariableJson ' , function ( ) {
5638
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature' , 'message_info' , 'user1' , {
5637
+ it ( 'returns the right value from getFeatureVariableJSON ' , function ( ) {
5638
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature' , 'message_info' , 'user1' , {
5639
5639
test_attribute : 'test_value' ,
5640
5640
} ) ;
5641
5641
assert . deepEqual ( result , {
@@ -5806,8 +5806,8 @@ describe('lib/optimizely', function() {
5806
5806
) ;
5807
5807
} ) ;
5808
5808
5809
- it ( 'returns the variable default value from getFeatureVariableJson ' , function ( ) {
5810
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature' , 'message_info' , 'user1' , {
5809
+ it ( 'returns the variable default value from getFeatureVariableJSON ' , function ( ) {
5810
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature' , 'message_info' , 'user1' , {
5811
5811
test_attribute : 'test_value' ,
5812
5812
} ) ;
5813
5813
assert . deepEqual ( result , {
@@ -5989,8 +5989,8 @@ describe('lib/optimizely', function() {
5989
5989
) ;
5990
5990
} ) ;
5991
5991
5992
- it ( 'returns the variable default value from getFeatureVariableJson ' , function ( ) {
5993
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature' , 'message_info' , 'user1' , {
5992
+ it ( 'returns the variable default value from getFeatureVariableJSON ' , function ( ) {
5993
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature' , 'message_info' , 'user1' , {
5994
5994
test_attribute : 'test_value' ,
5995
5995
} ) ;
5996
5996
assert . deepEqual ( result , {
@@ -6170,8 +6170,8 @@ describe('lib/optimizely', function() {
6170
6170
) ;
6171
6171
} ) ;
6172
6172
6173
- it ( 'returns the variable default value from getFeatureVariableJson ' , function ( ) {
6174
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_info' , 'user1' , {
6173
+ it ( 'returns the variable default value from getFeatureVariableJSON ' , function ( ) {
6174
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_info' , 'user1' , {
6175
6175
test_attribute : 'test_value' ,
6176
6176
} ) ;
6177
6177
assert . deepEqual ( result , {
@@ -6441,8 +6441,8 @@ describe('lib/optimizely', function() {
6441
6441
) ;
6442
6442
} ) ;
6443
6443
6444
- it ( 'returns null from getFeatureVariableJson when called with a non-json variable' , function ( ) {
6445
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_txt' , 'user1' ) ;
6444
+ it ( 'returns null from getFeatureVariableJSON when called with a non-json variable' , function ( ) {
6445
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_txt' , 'user1' ) ;
6446
6446
assert . strictEqual ( result , null ) ;
6447
6447
sinon . assert . calledWith (
6448
6448
createdLogger . log ,
@@ -6593,8 +6593,8 @@ describe('lib/optimizely', function() {
6593
6593
) ;
6594
6594
} ) ;
6595
6595
6596
- it ( 'returns null from getFeatureVariableJson if user id is null' , function ( ) {
6597
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_info' , null , {
6596
+ it ( 'returns null from getFeatureVariableJSON if user id is null' , function ( ) {
6597
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_info' , null , {
6598
6598
test_attribute : 'test_value' ,
6599
6599
} ) ;
6600
6600
assert . strictEqual ( result , null ) ;
@@ -6605,8 +6605,8 @@ describe('lib/optimizely', function() {
6605
6605
) ;
6606
6606
} ) ;
6607
6607
6608
- it ( 'returns null from getFeatureVariableJson if user id is undefined' , function ( ) {
6609
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_info' , undefined , {
6608
+ it ( 'returns null from getFeatureVariableJSON if user id is undefined' , function ( ) {
6609
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_info' , undefined , {
6610
6610
test_attribute : 'test_value' ,
6611
6611
} ) ;
6612
6612
assert . strictEqual ( result , null ) ;
@@ -6617,8 +6617,8 @@ describe('lib/optimizely', function() {
6617
6617
) ;
6618
6618
} ) ;
6619
6619
6620
- it ( 'returns null from getFeatureVariableJson if user id is not provided' , function ( ) {
6621
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_info' ) ;
6620
+ it ( 'returns null from getFeatureVariableJSON if user id is not provided' , function ( ) {
6621
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_info' ) ;
6622
6622
assert . strictEqual ( result , null ) ;
6623
6623
sinon . assert . calledWith (
6624
6624
createdLogger . log ,
@@ -6686,7 +6686,7 @@ describe('lib/optimizely', function() {
6686
6686
} ) ;
6687
6687
6688
6688
it ( 'should return null and log an error' , function ( ) {
6689
- var result = optlyInstance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'button_info' , 'user1' ) ;
6689
+ var result = optlyInstance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'button_info' , 'user1' ) ;
6690
6690
assert . strictEqual ( result , null ) ;
6691
6691
sinon . assert . calledWith (
6692
6692
createdLogger . log ,
@@ -6801,8 +6801,8 @@ describe('lib/optimizely', function() {
6801
6801
) ;
6802
6802
} ) ;
6803
6803
6804
- it ( 'returns null from getFeatureVariableJson if the argument feature key is invalid' , function ( ) {
6805
- var result = optlyInstance . getFeatureVariableJson ( 'thisIsNotAValidKey<><><>' , 'button_info' , 'user1' ) ;
6804
+ it ( 'returns null from getFeatureVariableJSON if the argument feature key is invalid' , function ( ) {
6805
+ var result = optlyInstance . getFeatureVariableJSON ( 'thisIsNotAValidKey<><><>' , 'button_info' , 'user1' ) ;
6806
6806
assert . strictEqual ( result , null ) ;
6807
6807
sinon . assert . calledWith (
6808
6808
createdLogger . log ,
@@ -6867,8 +6867,8 @@ describe('lib/optimizely', function() {
6867
6867
) ;
6868
6868
} ) ;
6869
6869
6870
- it ( 'returns null from getFeatureVariableJson if the argument variable key is invalid' , function ( ) {
6871
- var result = optlyInstance . getFeatureVariableJson (
6870
+ it ( 'returns null from getFeatureVariableJSON if the argument variable key is invalid' , function ( ) {
6871
+ var result = optlyInstance . getFeatureVariableJSON (
6872
6872
'test_feature_for_experiment' ,
6873
6873
'thisIsNotAVariableKey****' ,
6874
6874
'user1'
@@ -6966,7 +6966,7 @@ describe('lib/optimizely', function() {
6966
6966
assert . strictEqual ( logMessage , sprintf ( LOG_MESSAGES . INVALID_OBJECT , 'OPTIMIZELY' , 'getFeatureVariableString' ) ) ;
6967
6967
} ) ;
6968
6968
6969
- it ( 'returns null from getFeatureVariableJson when optimizely object is not a valid instance' , function ( ) {
6969
+ it ( 'returns null from getFeatureVariableJSON when optimizely object is not a valid instance' , function ( ) {
6970
6970
var instance = new Optimizely ( {
6971
6971
datafile : { } ,
6972
6972
errorHandler : errorHandler ,
@@ -6976,11 +6976,11 @@ describe('lib/optimizely', function() {
6976
6976
6977
6977
createdLogger . log . reset ( ) ;
6978
6978
6979
- instance . getFeatureVariableJson ( 'test_feature_for_experiment' , 'thisIsNotAVariableKey****' , 'user1' ) ;
6979
+ instance . getFeatureVariableJSON ( 'test_feature_for_experiment' , 'thisIsNotAVariableKey****' , 'user1' ) ;
6980
6980
6981
6981
sinon . assert . calledOnce ( createdLogger . log ) ;
6982
6982
var logMessage = createdLogger . log . args [ 0 ] [ 1 ] ;
6983
- assert . strictEqual ( logMessage , sprintf ( LOG_MESSAGES . INVALID_OBJECT , 'OPTIMIZELY' , 'getFeatureVariableJson ' ) ) ;
6983
+ assert . strictEqual ( logMessage , sprintf ( LOG_MESSAGES . INVALID_OBJECT , 'OPTIMIZELY' , 'getFeatureVariableJSON ' ) ) ;
6984
6984
} ) ;
6985
6985
} ) ;
6986
6986
} ) ;
0 commit comments