@@ -39,7 +39,9 @@ describe('ReactSDKClient', () => {
3939 getFeatureVariableBoolean : jest . fn ( ( ) => null ) ,
4040 getFeatureVariableDouble : jest . fn ( ( ) => null ) ,
4141 getFeatureVariableJSON : jest . fn ( ( ) => null ) ,
42- getAllFeatureVariables : jest . fn ( ( ) => { return { } } ) ,
42+ getAllFeatureVariables : jest . fn ( ( ) => {
43+ return { } ;
44+ } ) ,
4345 getFeatureVariable : jest . fn ( ( ) => null ) ,
4446 getFeatureVariableInteger : jest . fn ( ( ) => null ) ,
4547 getFeatureVariableString : jest . fn ( ( ) => null ) ,
@@ -508,7 +510,7 @@ describe('ReactSDKClient', () => {
508510 anyClient . getFeatureVariableInteger . mockReturnValue ( 10 ) ;
509511 anyClient . getFeatureVariableDouble . mockReturnValue ( - 10.5 ) ;
510512 anyClient . getFeatureVariableJSON . mockReturnValue ( {
511- value : 'json value'
513+ value : 'json value' ,
512514 } ) ;
513515 const instance = createInstance ( config ) ;
514516 instance . setUser ( {
@@ -521,31 +523,31 @@ describe('ReactSDKClient', () => {
521523 ivar : 10 ,
522524 dvar : - 10.5 ,
523525 jvar : {
524- value : 'json value'
525- }
526+ value : 'json value' ,
527+ } ,
526528 } ) ;
527529 } ) ;
528530 } ) ;
529531
530532 describe ( 'getAllFeatureVariables' , ( ) => {
531533 it ( 'returns an empty object when the inner SDK returns no variables' , ( ) => {
532- const anyClient = mockInnerClient . getAllFeatureVariables as jest . Mock ;
534+ const anyClient = mockInnerClient . getAllFeatureVariables as jest . Mock ;
533535 anyClient . mockReturnValue ( { } ) ;
534536 const instance = createInstance ( config ) ;
535537 const result = instance . getAllFeatureVariables ( 'feat1' , 'user1' ) ;
536538 expect ( result ) . toEqual ( { } ) ;
537539 } ) ;
538540
539541 it ( 'returns an object with variables of all types returned from the inner sdk ' , ( ) => {
540- const anyClient = mockInnerClient . getAllFeatureVariables as jest . Mock ;
542+ const anyClient = mockInnerClient . getAllFeatureVariables as jest . Mock ;
541543 anyClient . mockReturnValue ( {
542544 bvar : true ,
543545 svar : 'whatsup' ,
544546 ivar : 10 ,
545547 dvar : - 10.5 ,
546548 jvar : {
547- value : 'json value'
548- }
549+ value : 'json value' ,
550+ } ,
549551 } ) ;
550552 const instance = createInstance ( config ) ;
551553 instance . setUser ( {
@@ -558,8 +560,8 @@ describe('ReactSDKClient', () => {
558560 ivar : 10 ,
559561 dvar : - 10.5 ,
560562 jvar : {
561- value : 'json value'
562- }
563+ value : 'json value' ,
564+ } ,
563565 } ) ;
564566 } ) ;
565567
@@ -571,8 +573,8 @@ describe('ReactSDKClient', () => {
571573 ivar : 10 ,
572574 dvar : - 10.5 ,
573575 jvar : {
574- value : 'json value'
575- }
576+ value : 'json value' ,
577+ } ,
576578 } ) ;
577579 const instance = createInstance ( config ) ;
578580 instance . setUser ( {
@@ -588,8 +590,8 @@ describe('ReactSDKClient', () => {
588590 ivar : 10 ,
589591 dvar : - 10.5 ,
590592 jvar : {
591- value : 'json value'
592- }
593+ value : 'json value' ,
594+ } ,
593595 } ) ;
594596 expect ( mockFn ) . toBeCalledTimes ( 1 ) ;
595597 expect ( mockFn ) . toBeCalledWith ( 'feat1' , 'user1' , {
@@ -602,8 +604,8 @@ describe('ReactSDKClient', () => {
602604 ivar : 11 ,
603605 dvar : - 11.5 ,
604606 jvar : {
605- value : 'json another value'
606- }
607+ value : 'json another value' ,
608+ } ,
607609 } ) ;
608610 result = instance . getAllFeatureVariables ( 'feat1' , 'user2' , {
609611 bar : 'baz' ,
@@ -614,8 +616,8 @@ describe('ReactSDKClient', () => {
614616 ivar : 11 ,
615617 dvar : - 11.5 ,
616618 jvar : {
617- value : 'json another value'
618- }
619+ value : 'json another value' ,
620+ } ,
619621 } ) ;
620622 expect ( mockInnerClient . getAllFeatureVariables ) . toBeCalledTimes ( 1 ) ;
621623 expect ( mockInnerClient . getAllFeatureVariables ) . toBeCalledWith ( 'feat1' , 'user2' , { bar : 'baz' } ) ;
0 commit comments