@@ -19,7 +19,7 @@ import { makeMockClient } from '../mockClient';
1919function makeWrapper ( mockClient : ReturnType < typeof makeMockClient > ) {
2020 const contextValue : LDReactClientContextValue = {
2121 client : mockClient ,
22- initializedState : 'unknown ' ,
22+ initializedState : 'initializing ' ,
2323 } ;
2424
2525 return function Wrapper ( { children } : { children : React . ReactNode } ) {
@@ -142,7 +142,7 @@ it('useBoolVariationDetail calls variation detail again when context changes', (
142142 function StatefulWrapper ( { children } : { children : React . ReactNode } ) {
143143 const [ ctxValue , setCtx ] = React . useState < LDReactClientContextValue > ( {
144144 client : mockClient ,
145- initializedState : 'complete ' ,
145+ initializedState : 'initializing ' ,
146146 } ) ;
147147 setContextValue = setCtx ;
148148 return < LDReactContext . Provider value = { ctxValue } > { children } </ LDReactContext . Provider > ;
@@ -165,7 +165,7 @@ it('useBoolVariationDetail calls variation detail again when context changes', (
165165 setContextValue ( {
166166 client : mockClient ,
167167 context : { kind : 'user' , key : 'new-user' } ,
168- initializedState : 'complete ' ,
168+ initializedState : 'initializing ' ,
169169 } ) ;
170170 } ) ;
171171
@@ -300,7 +300,7 @@ it('useStringVariationDetail calls variation detail again when context changes',
300300 function StatefulWrapper ( { children } : { children : React . ReactNode } ) {
301301 const [ ctxValue , setCtx ] = React . useState < LDReactClientContextValue > ( {
302302 client : mockClient ,
303- initializedState : 'complete ' ,
303+ initializedState : 'initializing ' ,
304304 } ) ;
305305 setContextValue = setCtx ;
306306 return < LDReactContext . Provider value = { ctxValue } > { children } </ LDReactContext . Provider > ;
@@ -323,7 +323,7 @@ it('useStringVariationDetail calls variation detail again when context changes',
323323 setContextValue ( {
324324 client : mockClient ,
325325 context : { kind : 'user' , key : 'new-user' } ,
326- initializedState : 'complete ' ,
326+ initializedState : 'initializing ' ,
327327 } ) ;
328328 } ) ;
329329
@@ -413,7 +413,7 @@ it('useNumberVariationDetail calls variation detail again when context changes',
413413 function StatefulWrapper ( { children } : { children : React . ReactNode } ) {
414414 const [ ctxValue , setCtx ] = React . useState < LDReactClientContextValue > ( {
415415 client : mockClient ,
416- initializedState : 'complete ' ,
416+ initializedState : 'initializing ' ,
417417 } ) ;
418418 setContextValue = setCtx ;
419419 return < LDReactContext . Provider value = { ctxValue } > { children } </ LDReactContext . Provider > ;
@@ -436,7 +436,7 @@ it('useNumberVariationDetail calls variation detail again when context changes',
436436 setContextValue ( {
437437 client : mockClient ,
438438 context : { kind : 'user' , key : 'new-user' } ,
439- initializedState : 'complete ' ,
439+ initializedState : 'initializing ' ,
440440 } ) ;
441441 } ) ;
442442
@@ -526,7 +526,7 @@ it('useJsonVariationDetail calls variation detail again when context changes', (
526526 function StatefulWrapper ( { children } : { children : React . ReactNode } ) {
527527 const [ ctxValue , setCtx ] = React . useState < LDReactClientContextValue > ( {
528528 client : mockClient ,
529- initializedState : 'complete ' ,
529+ initializedState : 'initializing ' ,
530530 } ) ;
531531 setContextValue = setCtx ;
532532 return < LDReactContext . Provider value = { ctxValue } > { children } </ LDReactContext . Provider > ;
@@ -549,7 +549,7 @@ it('useJsonVariationDetail calls variation detail again when context changes', (
549549 setContextValue ( {
550550 client : mockClient ,
551551 context : { kind : 'user' , key : 'new-user' } ,
552- initializedState : 'complete ' ,
552+ initializedState : 'initializing ' ,
553553 } ) ;
554554 } ) ;
555555
0 commit comments