Skip to content

Commit

Permalink
fix use push to service test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Apr 10, 2020
1 parent 294b09e commit 58a44f0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
* you may not use this file except in compliance with the Elastic License.
*/
/* eslint-disable react/display-name */
import React from 'react';
import { renderHook, act } from '@testing-library/react-hooks';
import { usePushToService, ReturnUsePushToService, UsePushToService } from './';
import { TestProviders } from '../../../../mock';
import React from 'react';
import * as api from '../../../../containers/case/configure/api';
import { usePostPushToService } from '../../../../containers/case/use_post_push_to_service';
import { ClosureType } from '../../../../../../../../plugins/case/common/api/cases';
import * as i18n from './translations';
jest.mock('../../../../containers/case/use_post_push_to_service');
jest.mock('../../../../containers/case/configure/api');
import { useGetActionLicense } from '../../../../containers/case/use_get_action_license';
import { getKibanaConfigError, getLicenseError } from './helpers';
import * as api from '../../../../containers/case/configure/api';
jest.mock('../../../../containers/case/use_get_action_license');
jest.mock('../../../../containers/case/use_post_push_to_service');
jest.mock('../../../../containers/case/configure/api');

describe('usePushToService', () => {
const caseId = '12345';
Expand All @@ -40,7 +40,7 @@ describe('usePushToService', () => {
updatedBy: {},
version: 'string',
};
const getConfigureMock = api.getCaseConfigure as jest.Mock;
const getConfigureMock = jest.spyOn(api, 'getCaseConfigure');
const actionLicense = {
id: '.servicenow',
name: 'ServiceNow',
Expand Down

0 comments on commit 58a44f0

Please sign in to comment.