Skip to content

Commit

Permalink
feedback 2
Browse files Browse the repository at this point in the history
  • Loading branch information
js-jankisalvi committed Nov 6, 2024
1 parent ac83049 commit eb46790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const GetStep: FunctionComponent<Props> = ({ display, readOnly }) => {
component={Field}
config={{
label: i18n.GET_INCIDENT_METHOD,
defaultValue: 'get',
defaultValue: WebhookMethods.GET,
type: FIELD_TYPES.SELECT,
validations: [
{
Expand All @@ -71,7 +71,7 @@ export const GetStep: FunctionComponent<Props> = ({ display, readOnly }) => {
componentProps={{
euiFieldProps: {
'data-test-subj': 'webhookGetIncidentMethodSelect',
options: ['get', 'post'].map((verb) => ({
options: [WebhookMethods.GET, WebhookMethods.POST].map((verb) => ({
text: verb.toUpperCase(),
value: verb,
})),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ export default function casesWebhookTest({ getService }: FtrProviderContext) {
expect(proxyHaveBeenCalled).to.equal(false);
});

it('should respond with bad JSON error when get case JSON is bad', async () => {
it('should respond with bad JSON error when get case POST JSON is bad', async () => {
const { body } = await supertest
.post('/api/actions/connector')
.set('kbn-xsrf', 'foo')
Expand Down

0 comments on commit eb46790

Please sign in to comment.