Skip to content

Commit

Permalink
[kbn-es] use bare ToolingLog rather than stub (#36862)
Browse files Browse the repository at this point in the history
(cherry picked from commit e8ffa2f)
  • Loading branch information
spalger committed May 22, 2019
1 parent 558b624 commit 178950e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/kbn-es/src/utils/native_realm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -35,11 +36,7 @@ const mockClient = {
};
Client.mockImplementation(() => mockClient);

const log = {
error: jest.fn(),
info: jest.fn(),
};

const log = new ToolingLog();
let nativeRealm;

beforeEach(() => {
Expand Down

0 comments on commit 178950e

Please sign in to comment.