Skip to content

Commit 95668db

Browse files
committed
Fixes jest test failures
1 parent b2e0197 commit 95668db

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

x-pack/platform/plugins/shared/security/server/user_profile/user_profile_service.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)