@@ -180,7 +180,7 @@ suite('Openshift/Cluster', () => {
180
180
181
181
expect ( status ) . equals ( `Successfully logged in to '${ testUrl } '` ) ;
182
182
expect ( execStub ) . calledOnceWith ( Command . odoLoginWithUsernamePassword ( testUrl , testUser , password ) ) ;
183
- expect ( commandStub ) . calledOnceWith ( 'setContext' , 'isLoggedIn' , true ) ;
183
+ expect ( commandStub ) . calledWith ( 'setContext' , 'isLoggedIn' , true ) ;
184
184
} ) ;
185
185
186
186
( keytar ? test : test . skip ) ( 'returns with no username set' , async ( ) => {
@@ -266,7 +266,7 @@ suite('Openshift/Cluster', () => {
266
266
267
267
expect ( status ) . equals ( `Successfully logged in to '${ testUrl } '` ) ;
268
268
expect ( execStub ) . calledOnceWith ( Command . odoLoginWithToken ( testUrl , token ) ) ;
269
- expect ( commandStub ) . calledOnceWith ( 'setContext' , 'isLoggedIn' , true ) ;
269
+ expect ( commandStub ) . calledWith ( 'setContext' , 'isLoggedIn' , true ) ;
270
270
} ) ;
271
271
272
272
test ( 'returns with no token set' , async ( ) => {
@@ -303,7 +303,7 @@ suite('Openshift/Cluster', () => {
303
303
304
304
expect ( status ) . null ;
305
305
expect ( execStub ) . calledOnceWith ( 'odo logout' ) ;
306
- expect ( commandStub ) . calledOnceWith ( 'setContext' , 'isLoggedIn' , false ) ;
306
+ expect ( commandStub ) . calledWith ( 'setContext' , 'isLoggedIn' , false ) ;
307
307
} ) ;
308
308
309
309
test ( 'logout and log back in works' , async ( ) => {
0 commit comments