Skip to content

Commit

Permalink
updated type issue in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Jun 23, 2020
1 parent 6feaa51 commit f55a236
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { SavedObjectsClientContract } from 'kibana/server';

import {
CommentsPartialArray,
CreateCommentsArray,
Description,
DescriptionOrUndefined,
EntriesArray,
Expand All @@ -30,6 +30,7 @@ import {
SortOrderOrUndefined,
Tags,
TagsOrUndefined,
UpdateCommentsArray,
_Tags,
_TagsOrUndefined,
} from '../../../common/schemas';
Expand Down Expand Up @@ -88,7 +89,7 @@ export interface GetExceptionListItemOptions {

export interface CreateExceptionListItemOptions {
_tags: _Tags;
comments: CommentsPartialArray;
comments: CreateCommentsArray;
entries: EntriesArray;
itemId: ItemId;
listId: ListId;
Expand All @@ -102,7 +103,7 @@ export interface CreateExceptionListItemOptions {

export interface UpdateExceptionListItemOptions {
_tags: _TagsOrUndefined;
comments: CommentsPartialArray;
comments: UpdateCommentsArray;
entries: EntriesArrayOrUndefined;
id: IdOrUndefined;
itemId: ItemIdOrUndefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import euiLightVars from '@elastic/eui/dist/eui_theme_light.json';

import { ExceptionItem } from './';
import { getExceptionListItemSchemaMock } from '../../../../../../../lists/common/schemas/response/exception_list_item_schema.mock';
import { getCommentsMock } from '../../../../../../../lists/common/schemas/types/comments.mock';
import { getCommentsArrayMock } from '../../../../../../../lists/common/schemas/types/comments.mock';

addDecorator((storyFn) => (
<ThemeProvider theme={() => ({ eui: euiLightVars, darkMode: false })}>{storyFn()}</ThemeProvider>
Expand Down Expand Up @@ -68,7 +68,7 @@ storiesOf('Components|ExceptionItem', module)
const payload = getExceptionListItemSchemaMock();
payload._tags = [];
payload.description = '';
payload.comments = getCommentsMock();
payload.comments = getCommentsArrayMock();
payload.entries = [
{
field: 'actingProcess.file.signer',
Expand Down Expand Up @@ -106,7 +106,7 @@ storiesOf('Components|ExceptionItem', module)
})
.add('with everything', () => {
const payload = getExceptionListItemSchemaMock();
payload.comments = getCommentsMock();
payload.comments = getCommentsArrayMock();
return (
<ExceptionItem
loadingItemIds={[]}
Expand Down

0 comments on commit f55a236

Please sign in to comment.