Skip to content

Commit

Permalink
fixes typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee committed Aug 14, 2020
1 parent 1695699 commit 94f0ca3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import * as builder from '../builder';
import * as helpers from '../helpers';
import { getExceptionListItemSchemaMock } from '../../../../../../lists/common/schemas/response/exception_list_item_schema.mock';
import { EntriesArray } from '../../../../../../lists/common/schemas/types';
import { ExceptionListItemSchema } from '../../../../../../lists/common';

jest.mock('../../../../detections/containers/detection_engine/alerts/use_signal_index');
jest.mock('../../../../common/lib/kibana');
Expand Down Expand Up @@ -243,7 +244,10 @@ describe('When the add exception modal is opened', () => {

describe('when there is bulk-closeable alert data passed to an endpoint list exception', () => {
let wrapper: ReactWrapper;
let callProps;
let callProps: {
onChange: (props: { exceptionItems: ExceptionListItemSchema[] }) => void;
exceptionListItems: ExceptionListItemSchema[];
};
beforeEach(() => {
// Mocks the index patterns to contain the pre-populated endpoint fields so that the exception qualifies as bulk closable
(useFetchIndexPatterns as jest.Mock).mockImplementation(() => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ describe('When the edit exception modal is opened', () => {
});
});

describe('when an detection exception with exception data is passed', () => {
describe('when an detection exception with entries is passed', () => {
let wrapper: ReactWrapper;
beforeEach(() => {
wrapper = mount(
Expand Down

0 comments on commit 94f0ca3

Please sign in to comment.