From e8ffa2f3c7071b5edf00bc97682d47155e3a22d0 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 21 May 2019 21:57:47 -0700 Subject: [PATCH] [kbn-es] use bare ToolingLog rather than stub (#36862) --- packages/kbn-es/src/utils/native_realm.test.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/kbn-es/src/utils/native_realm.test.js b/packages/kbn-es/src/utils/native_realm.test.js index d5a036df70b44..ae3c615f1ca25 100644 --- a/packages/kbn-es/src/utils/native_realm.test.js +++ b/packages/kbn-es/src/utils/native_realm.test.js @@ -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(() => {