Skip to content

Commit

Permalink
fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Mar 15, 2021
1 parent 26cb5b9 commit 1e6edbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/fleet/server/services/artifacts/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
* 2.0.
*/

import { Artifact, ArtifactElasticsearchProperties } from './types';
import { ESSearchHit } from '../../../../../typings/elasticsearch';

import { Artifact, ArtifactElasticsearchProperties } from './types';
import { ARTIFACT_DOWNLOAD_RELATIVE_PATH } from './constants';

export const esSearchHitToArtifact = <
Expand Down
3 changes: 3 additions & 0 deletions x-pack/plugins/fleet/server/services/artifacts/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
* 2.0.
*/
import { URL } from 'url';

import { ApiResponse } from '@elastic/elasticsearch';
import { ResponseError } from '@elastic/elasticsearch/lib/errors';

import { elasticsearchServiceMock } from '../../../../../../src/core/server/mocks';
import { ESSearchHit, ESSearchResponse } from '../../../../../typings/elasticsearch';

import { Artifact, ArtifactElasticsearchProperties, ArtifactsClientInterface } from './types';

export const createArtifactsClientMock = (): jest.Mocked<ArtifactsClientInterface> => {
Expand Down

0 comments on commit 1e6edbe

Please sign in to comment.