Skip to content

Commit

Permalink
EMT-451: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamdifrankie committed Jun 24, 2020
1 parent 728d229 commit 3649efa
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { kibanaRequestToMetadataListESQuery, getESQueryHostMetadataByID } from '
import { EndpointAppContextService } from '../../endpoint_app_context_services';
import { createMockConfig } from '../../../lib/detection_engine/routes/__mocks__';
import { metadataIndexPattern } from '../../../../common/endpoint/constants';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { loggingServiceMock } from '../../../../../../../src/core/server/logging/logging_service.mock';

describe('query builder', () => {
describe('MetadataListESQuery', () => {
Expand Down Expand Up @@ -72,7 +70,7 @@ describe('query builder', () => {
const query = await kibanaRequestToMetadataListESQuery(
mockRequest,
{
logFactory: loggingServiceMock.create(),
logFactory: loggingSystemMock.create(),
service: new EndpointAppContextService(),
config: () => Promise.resolve(createMockConfig()),
},
Expand Down Expand Up @@ -209,7 +207,7 @@ describe('query builder', () => {
const query = await kibanaRequestToMetadataListESQuery(
mockRequest,
{
logFactory: loggingServiceMock.create(),
logFactory: loggingSystemMock.create(),
service: new EndpointAppContextService(),
config: () => Promise.resolve(createMockConfig()),
},
Expand Down

0 comments on commit 3649efa

Please sign in to comment.