Skip to content

Commit

Permalink
Fixing type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed May 2, 2023
1 parent f340554 commit 82e6df2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
import type SuperTest from 'supertest';
import { CASES_INTERNAL_URL, CASES_URL } from '@kbn/cases-plugin/common/constants';
import {
AllCommentsResponse,
Comments,
BulkCreateCommentRequest,
BulkGetAttachmentsResponse,
Case,
CommentPatchRequest,
CommentRequest,
Comment,
Comments,
CommentsFindResponse,
CommentType,
getCaseFindAttachmentsUrl,
getCasesDeleteFileAttachmentsUrl,
Expand Down Expand Up @@ -203,7 +203,7 @@ export const getAllComments = async ({
caseId: string;
auth?: { user: User; space: string | null };
expectedHttpCode?: number;
}): Promise<AllCommentsResponse> => {
}): Promise<Comments> => {
const { body: comments } = await supertest
.get(`${getSpaceUrlPrefix(auth.space)}${CASES_URL}/${caseId}/comments`)
.auth(auth.user.username, auth.user.password)
Expand Down Expand Up @@ -295,7 +295,7 @@ export const findAttachments = async ({
query?: Record<string, unknown>;
expectedHttpCode?: number;
auth?: { user: User; space: string | null };
}): Promise<Comments> => {
}): Promise<CommentsFindResponse> => {
const { body } = await supertest
.get(`${getSpaceUrlPrefix(auth.space)}${getCaseFindAttachmentsUrl(caseId)}`)
.set('kbn-xsrf', 'true')
Expand Down

0 comments on commit 82e6df2

Please sign in to comment.