File tree Expand file tree Collapse file tree
x-pack/platform/plugins/shared/security/server/user_profile Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -466,10 +466,7 @@ describe('UserProfileService', () => {
466466 mockStartParams . clusterClient . asInternalUser . security . getUserProfile
467467 ) . not . toHaveBeenCalled ( ) ;
468468
469- expect ( securityTelemetry . recordGetCurrentProfileInvocation ) . toHaveBeenCalledTimes ( 1 ) ;
470- expect ( securityTelemetry . recordGetCurrentProfileInvocation ) . toHaveBeenLastCalledWith ( {
471- outcome : 'success' ,
472- } ) ;
469+ expect ( securityTelemetry . recordGetCurrentProfileInvocation ) . not . toHaveBeenCalled ( ) ;
473470 } ) ;
474471 } ) ;
475472
@@ -609,10 +606,7 @@ describe('UserProfileService', () => {
609606 mockStartParams . clusterClient . asInternalUser . security . getUserProfile
610607 ) . not . toHaveBeenCalled ( ) ;
611608
612- expect ( securityTelemetry . recordGetCurrentProfileInvocation ) . toHaveBeenCalledTimes ( 1 ) ;
613- expect ( securityTelemetry . recordGetCurrentProfileInvocation ) . toHaveBeenLastCalledWith ( {
614- outcome : 'success' ,
615- } ) ;
609+ expect ( securityTelemetry . recordGetCurrentProfileInvocation ) . not . toHaveBeenCalled ( ) ;
616610 } ) ;
617611
618612 it ( 'should get user profile and application data scoped to Kibana' , async ( ) => {
You can’t perform that action at this time.
0 commit comments