File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
packages/optimizely-sdk/lib/core/project_config Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,32 @@ describe('lib/core/project_config', function() {
392
392
} ) ;
393
393
} ) ;
394
394
395
+ describe ( '#getSendFlagDecisionsValue' , function ( ) {
396
+ it ( 'should return false when sendFlagDecisions is undefined' , function ( ) {
397
+ configObj . sendFlagDecisions = undefined ;
398
+ assert . deepEqual (
399
+ projectConfig . getSendFlagDecisionsValue ( configObj ) ,
400
+ false
401
+ ) ;
402
+ } ) ;
403
+
404
+ it ( 'should return false when sendFlagDecisions is set to false' , function ( ) {
405
+ configObj . sendFlagDecisions = false ;
406
+ assert . deepEqual (
407
+ projectConfig . getSendFlagDecisionsValue ( configObj ) ,
408
+ false
409
+ ) ;
410
+ } ) ;
411
+
412
+ it ( 'should return true when sendFlagDecisions is set to true' , function ( ) {
413
+ configObj . sendFlagDecisions = true ;
414
+ assert . deepEqual (
415
+ projectConfig . getSendFlagDecisionsValue ( configObj ) ,
416
+ true
417
+ ) ;
418
+ } ) ;
419
+ } ) ;
420
+
395
421
describe ( 'feature management' , function ( ) {
396
422
var featureManagementLogger = loggerPlugin . createLogger ( { logLevel : LOG_LEVEL . INFO } ) ;
397
423
beforeEach ( function ( ) {
You can’t perform that action at this time.
0 commit comments