Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Nov 5, 2020
1 parent 3bb5fc3 commit 4fe9282
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
15 changes: 14 additions & 1 deletion x-pack/plugins/actions/server/builtin_action_types/jira/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,20 @@ const createMock = (): jest.Mocked<ExternalService> => {
key: 'RJ-107',
title: 'Test title',
})),
getFields: jest.fn().mockImplementation(() => jiraCommonFields),
getFields: jest.fn().mockImplementation(() => ({
description: {
allowedValues: [],
defaultValue: {},
required: true,
schema: { type: 'string' },
},
summary: {
allowedValues: [],
defaultValue: {},
required: true,
schema: { type: 'string' },
},
})),
};

service.createComment.mockImplementationOnce(() =>
Expand Down
20 changes: 9 additions & 11 deletions x-pack/plugins/actions/server/builtin_action_types/jira/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,20 @@ import axios from 'axios';

import { Logger } from '../../../../../../src/core/server';
import {
ExternalServiceCredentials,
ExternalService,
CreateIncidentParams,
UpdateIncidentParams,
JiraPublicConfigurationType,
JiraSecretConfigurationType,
Fields,
CreateCommentParams,
Incident,
ResponseError,
CreateIncidentParams,
ExternalService,
ExternalServiceCommentResponse,
ExternalServiceCredentials,
ExternalServiceIncidentResponse,
ExternalServiceFields,
Fields,
FieldSchema,
GetFieldsByIssueTypeResponse,
GetCommonFieldsResponse,
Incident,
JiraPublicConfigurationType,
JiraSecretConfigurationType,
ResponseError,
UpdateIncidentParams,
} from './types';

import * as i18n from './translations';
Expand Down

0 comments on commit 4fe9282

Please sign in to comment.