mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[kbn-es] use bare ToolingLog rather than stub (#36862)
This commit is contained in:
parent
5d79b9d081
commit
e8ffa2f3c7
1 changed files with 2 additions and 5 deletions
|
@ -22,6 +22,7 @@ const { NativeRealm } = require('./native_realm');
|
|||
jest.genMockFromModule('@elastic/elasticsearch');
|
||||
jest.mock('@elastic/elasticsearch');
|
||||
|
||||
const { ToolingLog } = require('@kbn/dev-utils');
|
||||
const { Client } = require('@elastic/elasticsearch');
|
||||
|
||||
const mockClient = {
|
||||
|
@ -35,11 +36,7 @@ const mockClient = {
|
|||
};
|
||||
Client.mockImplementation(() => mockClient);
|
||||
|
||||
const log = {
|
||||
error: jest.fn(),
|
||||
info: jest.fn(),
|
||||
};
|
||||
|
||||
const log = new ToolingLog();
|
||||
let nativeRealm;
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue