From 36dd211f8333acb82ad8761dceba24560e7fcfb7 Mon Sep 17 00:00:00 2001 From: Bailey Cash Date: Thu, 20 Feb 2025 11:24:30 -0500 Subject: [PATCH] test fix? --- .../components/settings/project_api_keys/api_key_btn.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/api_key_btn.test.tsx b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/api_key_btn.test.tsx index 5d8bfd2381ded..13697ec94f77d 100644 --- a/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/api_key_btn.test.tsx +++ b/x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/components/settings/project_api_keys/api_key_btn.test.tsx @@ -12,8 +12,6 @@ import { ApiKeyBtn } from './api_key_btn'; import { render } from '../../../utils/testing'; describe('', () => { - const setLoadAPIKey = jest.fn(); - const clickCallback = jest.fn(); it('calls delete monitor on monitor deletion', async () => { @@ -21,7 +19,7 @@ describe('', () => { expect(screen.getByText('Generate Project API key')).toBeInTheDocument(); await userEvent.click(screen.getByTestId('uptimeMonitorManagementApiKeyGenerate')); - expect(setLoadAPIKey).toHaveBeenCalled(); + expect(clickCallback).toHaveBeenCalled(); }); it('shows correct content on loading', () => {