[kbn-es] use bare ToolingLog rather than stub (#36862)

(cherry picked from commit e8ffa2f3c7)
This commit is contained in:
spalger 2019-05-21 21:57:47 -07:00
parent 558b624ba1
commit 178950ea85

View file

@ -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(() => {