@@ -175,48 +175,48 @@ describe("cliConfig", () => {
175175
176176 it ( "returns true when all conditions are met (macOS, keyringAuth, setting enabled)" , ( ) => {
177177 vi . stubGlobal ( "process" , { ...process , platform : "darwin" } ) ;
178- const _config = new MockConfigurationProvider ( ) ;
179- _config . set ( "coder.useKeyring" , true ) ;
178+ const config = new MockConfigurationProvider ( ) ;
179+ config . set ( "coder.useKeyring" , true ) ;
180180 const featureSet = featureSetForVersion ( semver . parse ( "2.29.0" ) ) ;
181181 expect ( shouldUseKeyring ( featureSet ) ) . toBe ( true ) ;
182182 } ) ;
183183
184184 it ( "returns true when all conditions are met (Windows)" , ( ) => {
185185 vi . stubGlobal ( "process" , { ...process , platform : "win32" } ) ;
186- const _config = new MockConfigurationProvider ( ) ;
187- _config . set ( "coder.useKeyring" , true ) ;
186+ const config = new MockConfigurationProvider ( ) ;
187+ config . set ( "coder.useKeyring" , true ) ;
188188 const featureSet = featureSetForVersion ( semver . parse ( "2.29.0" ) ) ;
189189 expect ( shouldUseKeyring ( featureSet ) ) . toBe ( true ) ;
190190 } ) ;
191191
192192 it ( "returns false on Linux" , ( ) => {
193193 vi . stubGlobal ( "process" , { ...process , platform : "linux" } ) ;
194- const _config = new MockConfigurationProvider ( ) ;
195- _config . set ( "coder.useKeyring" , true ) ;
194+ const config = new MockConfigurationProvider ( ) ;
195+ config . set ( "coder.useKeyring" , true ) ;
196196 const featureSet = featureSetForVersion ( semver . parse ( "2.29.0" ) ) ;
197197 expect ( shouldUseKeyring ( featureSet ) ) . toBe ( false ) ;
198198 } ) ;
199199
200200 it ( "returns false when CLI version is too old" , ( ) => {
201201 vi . stubGlobal ( "process" , { ...process , platform : "darwin" } ) ;
202- const _config = new MockConfigurationProvider ( ) ;
203- _config . set ( "coder.useKeyring" , true ) ;
202+ const config = new MockConfigurationProvider ( ) ;
203+ config . set ( "coder.useKeyring" , true ) ;
204204 const featureSet = featureSetForVersion ( semver . parse ( "2.28.0" ) ) ;
205205 expect ( shouldUseKeyring ( featureSet ) ) . toBe ( false ) ;
206206 } ) ;
207207
208208 it ( "returns false when setting is disabled" , ( ) => {
209209 vi . stubGlobal ( "process" , { ...process , platform : "darwin" } ) ;
210- const _config = new MockConfigurationProvider ( ) ;
211- _config . set ( "coder.useKeyring" , false ) ;
210+ const config = new MockConfigurationProvider ( ) ;
211+ config . set ( "coder.useKeyring" , false ) ;
212212 const featureSet = featureSetForVersion ( semver . parse ( "2.29.0" ) ) ;
213213 expect ( shouldUseKeyring ( featureSet ) ) . toBe ( false ) ;
214214 } ) ;
215215
216216 it ( "returns true for devel prerelease on macOS" , ( ) => {
217217 vi . stubGlobal ( "process" , { ...process , platform : "darwin" } ) ;
218- const _config = new MockConfigurationProvider ( ) ;
219- _config . set ( "coder.useKeyring" , true ) ;
218+ const config = new MockConfigurationProvider ( ) ;
219+ config . set ( "coder.useKeyring" , true ) ;
220220 const featureSet = featureSetForVersion (
221221 semver . parse ( "0.0.0-devel+abc123" ) ,
222222 ) ;
@@ -238,8 +238,8 @@ describe("cliConfig", () => {
238238
239239 it ( "returns url mode when keyring should be used" , ( ) => {
240240 vi . stubGlobal ( "process" , { ...process , platform : "darwin" } ) ;
241- const _config = new MockConfigurationProvider ( ) ;
242- _config . set ( "coder.useKeyring" , true ) ;
241+ const config = new MockConfigurationProvider ( ) ;
242+ config . set ( "coder.useKeyring" , true ) ;
243243 const featureSet = featureSetForVersion ( semver . parse ( "2.29.0" ) ) ;
244244 const auth = resolveCliAuth (
245245 featureSet ,
@@ -254,7 +254,7 @@ describe("cliConfig", () => {
254254
255255 it ( "returns global-config mode when keyring should not be used" , ( ) => {
256256 vi . stubGlobal ( "process" , { ...process , platform : "linux" } ) ;
257- const _config = new MockConfigurationProvider ( ) ;
257+ new MockConfigurationProvider ( ) ;
258258 const featureSet = featureSetForVersion ( semver . parse ( "2.29.0" ) ) ;
259259 const auth = resolveCliAuth (
260260 featureSet ,
@@ -269,8 +269,8 @@ describe("cliConfig", () => {
269269
270270 it ( "returns global-config mode when url is undefined" , ( ) => {
271271 vi . stubGlobal ( "process" , { ...process , platform : "darwin" } ) ;
272- const _config = new MockConfigurationProvider ( ) ;
273- _config . set ( "coder.useKeyring" , true ) ;
272+ const config = new MockConfigurationProvider ( ) ;
273+ config . set ( "coder.useKeyring" , true ) ;
274274 const featureSet = featureSetForVersion ( semver . parse ( "2.29.0" ) ) ;
275275 const auth = resolveCliAuth ( featureSet , undefined , "/config/dir" ) ;
276276 expect ( auth ) . toEqual ( {
0 commit comments