@@ -630,7 +630,7 @@ describe("ClineProvider", () => {
630630 setModeConfig : jest . fn ( ) ,
631631 } as any
632632
633- provider . updateGlobalState ( "currentApiConfigName" , "current-config" )
633+ provider . setValue ( "currentApiConfigName" , "current-config" )
634634
635635 // Switch to architect mode
636636 await messageHandler ( { type : "mode" , text : "architect" } )
@@ -759,7 +759,7 @@ describe("ClineProvider", () => {
759759 } ,
760760 }
761761
762- provider . updateGlobalState ( "customModePrompts" , existingPrompts )
762+ provider . setValue ( "customModePrompts" , existingPrompts )
763763
764764 // Test updating a prompt
765765 await messageHandler ( {
@@ -2159,19 +2159,19 @@ describe.skip("ContextProxy integration", () => {
21592159 } )
21602160
21612161 test ( "updateGlobalState uses contextProxy" , async ( ) => {
2162- await provider . updateGlobalState ( "currentApiConfigName" , "testValue" )
2162+ await provider . setValue ( "currentApiConfigName" , "testValue" )
21632163 expect ( mockContextProxy . updateGlobalState ) . toHaveBeenCalledWith ( "currentApiConfigName" , "testValue" )
21642164 } )
21652165
21662166 test ( "getGlobalState uses contextProxy" , async ( ) => {
21672167 mockContextProxy . getGlobalState . mockResolvedValueOnce ( "testValue" )
2168- const result = await provider . getGlobalState ( "currentApiConfigName" )
2168+ const result = await provider . getValue ( "currentApiConfigName" )
21692169 expect ( mockContextProxy . getGlobalState ) . toHaveBeenCalledWith ( "currentApiConfigName" )
21702170 expect ( result ) . toBe ( "testValue" )
21712171 } )
21722172
21732173 test ( "storeSecret uses contextProxy" , async ( ) => {
2174- await provider . storeSecret ( "apiKey" , "test-secret" )
2174+ await provider . setValue ( "apiKey" , "test-secret" )
21752175 expect ( mockContextProxy . storeSecret ) . toHaveBeenCalledWith ( "apiKey" , "test-secret" )
21762176 } )
21772177
0 commit comments