@@ -203,7 +203,7 @@ describe('codewhisperer status bar', function () {
203203 } )
204204
205205 it ( 'shows correct status bar when auth is not connected' , async function ( ) {
206- sandbox . stub ( AuthUtil . instance , 'isConnectionValid ' ) . returns ( false )
206+ sandbox . stub ( AuthUtil . instance , 'isConnected ' ) . returns ( false )
207207 sandbox . stub ( AuthUtil . instance , 'isConnectionExpired' ) . returns ( false )
208208
209209 await service . refreshStatusBar ( )
@@ -215,7 +215,7 @@ describe('codewhisperer status bar', function () {
215215 } )
216216
217217 it ( 'shows correct status bar when auth is connected' , async function ( ) {
218- sandbox . stub ( AuthUtil . instance , 'isConnectionValid ' ) . returns ( true )
218+ sandbox . stub ( AuthUtil . instance , 'isConnected ' ) . returns ( true )
219219 sandbox . stub ( CodeSuggestionsState . instance , 'isSuggestionsEnabled' ) . returns ( true )
220220
221221 await service . refreshStatusBar ( )
@@ -227,7 +227,7 @@ describe('codewhisperer status bar', function () {
227227 } )
228228
229229 it ( 'shows correct status bar when auth is connected but paused' , async function ( ) {
230- sandbox . stub ( AuthUtil . instance , 'isConnectionValid ' ) . returns ( true )
230+ sandbox . stub ( AuthUtil . instance , 'isConnected ' ) . returns ( true )
231231 sandbox . stub ( CodeSuggestionsState . instance , 'isSuggestionsEnabled' ) . returns ( false )
232232
233233 await service . refreshStatusBar ( )
@@ -239,7 +239,7 @@ describe('codewhisperer status bar', function () {
239239 } )
240240
241241 it ( 'shows correct status bar when auth is expired' , async function ( ) {
242- sandbox . stub ( AuthUtil . instance , 'isConnectionValid ' ) . returns ( false )
242+ sandbox . stub ( AuthUtil . instance , 'isConnected ' ) . returns ( false )
243243 sandbox . stub ( AuthUtil . instance , 'isConnectionExpired' ) . returns ( true )
244244
245245 await service . refreshStatusBar ( )
0 commit comments