Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Nov 2, 2021
1 parent 6920190 commit 92f84df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/actions/server/usage/actions_telemetry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 92f84df

Please sign in to comment.