@@ -78,9 +78,9 @@ describe("ApiKey Component", () => {
7878 apiKey : "" ,
7979 apiKeyEnvVar : "TEST_API_KEY" ,
8080 setApiKey : vi . fn ( ) ,
81- setApiKeyUseEnvVar : vi . fn ( ) ,
81+ setConfigUseEnvVars : vi . fn ( ) ,
8282 apiKeyLabel : "Test API Key" ,
83- apiKeyUseEnvVar : false ,
83+ configUseEnvVars : false ,
8484 getApiKeyUrl : "https://example.com/get-key" ,
8585 getApiKeyLabel : "Get API Key" ,
8686 disabled : false ,
@@ -114,7 +114,7 @@ describe("ApiKey Component", () => {
114114 expect ( defaultProps . setApiKey ) . toHaveBeenCalledWith ( "new-api-key" )
115115 } )
116116
117- it ( "calls setApiKeyUseEnvVar when checkbox is toggled" , ( ) => {
117+ it ( "calls setConfigUseEnvVars when checkbox is toggled" , ( ) => {
118118 const props = {
119119 ...defaultProps ,
120120 apiKeyEnvVar : "ANTHROPIC_API_KEY" , // This exists in mockProcessEnv
@@ -125,14 +125,14 @@ describe("ApiKey Component", () => {
125125 const checkbox = screen . getByTestId ( "env-var-checkbox-input" )
126126 fireEvent . click ( checkbox )
127127
128- expect ( props . setApiKeyUseEnvVar ) . toHaveBeenCalledWith ( true )
128+ expect ( props . setConfigUseEnvVars ) . toHaveBeenCalledWith ( true )
129129 } )
130130
131131 it ( "disables input when useEnvVar is true and env var exists" , ( ) => {
132132 const props = {
133133 ...defaultProps ,
134134 apiKeyEnvVar : "ANTHROPIC_API_KEY" , // This exists in mockProcessEnv
135- apiKeyUseEnvVar : true ,
135+ configUseEnvVars : true ,
136136 }
137137
138138 render ( < ApiKey { ...props } /> )
@@ -175,7 +175,7 @@ describe("ApiKey Component", () => {
175175 const props = {
176176 ...defaultProps ,
177177 apiKeyEnvVar : "ANTHROPIC_API_KEY" , // This exists in mockProcessEnv
178- apiKeyUseEnvVar : true ,
178+ configUseEnvVars : true ,
179179 }
180180
181181 render ( < ApiKey { ...props } /> )
@@ -211,7 +211,7 @@ describe("ApiKey Component", () => {
211211 const props = {
212212 ...defaultProps ,
213213 apiKeyEnvVar : "ANTHROPIC_API_KEY" , // This exists in mockProcessEnv
214- apiKeyUseEnvVar : true ,
214+ configUseEnvVars : true ,
215215 }
216216
217217 render ( < ApiKey { ...props } /> )
@@ -225,7 +225,7 @@ describe("ApiKey Component", () => {
225225 const props = {
226226 ...defaultProps ,
227227 apiKeyEnvVar : "NONEXISTENT_API_KEY" ,
228- apiKeyUseEnvVar : true ,
228+ configUseEnvVars : true ,
229229 }
230230
231231 render ( < ApiKey { ...props } /> )
0 commit comments