From 92f84df5357553b5a7c9ce904d14a7d01f3803da Mon Sep 17 00:00:00 2001 From: YulNaumenko Date: Mon, 1 Nov 2021 22:24:18 -0700 Subject: [PATCH] fixed test --- x-pack/plugins/actions/server/usage/actions_telemetry.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts b/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts index 3dec640b58110..07f7f83333844 100644 --- a/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts +++ b/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts @@ -7,7 +7,7 @@ // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { elasticsearchClientMock } from '../../../../../src/core/server/elasticsearch/client/mocks'; -import { getExecutionsTotalCount, getInUseTotalCount, getTotalCount } from './actions_telemetry'; +import { getExecutionsPerDayCount, getInUseTotalCount, getTotalCount } from './actions_telemetry'; describe('actions telemetry', () => { test('getTotalCount should replace first symbol . to __ for action types names', async () => { @@ -680,7 +680,7 @@ Object { }, }) ); - const telemetry = await getExecutionsTotalCount(mockEsClient, 'test'); + const telemetry = await getExecutionsPerDayCount(mockEsClient, 'test'); expect(mockEsClient.search).toHaveBeenCalledTimes(1); expect(telemetry).toStrictEqual({