From c03e3067788887b72a1ce18e15483cdbc1ee6536 Mon Sep 17 00:00:00 2001 From: Thorsten Gilfert Date: Mon, 8 Apr 2024 13:56:42 +0000 Subject: [PATCH] Fixing test Signed-off-by: Thorsten Gilfert --- .../src/components/Card/CardHeader.test.tsx | 2 +- .../src/components/PullRequestCard/PullRequestCard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/github-pull-requests-board/src/components/Card/CardHeader.test.tsx b/plugins/github-pull-requests-board/src/components/Card/CardHeader.test.tsx index f46396bc29..47d3713466 100644 --- a/plugins/github-pull-requests-board/src/components/Card/CardHeader.test.tsx +++ b/plugins/github-pull-requests-board/src/components/Card/CardHeader.test.tsx @@ -67,7 +67,7 @@ describe('', () => { it('finds commit status in PR Card Header', async () => { await renderInTestApp(); expect(screen.getByText('Commit Status:')).toBeInTheDocument(); - expect(props.status?.commit.statusCheckRollup.state).toBeTruthy(); + expect(props.status[0].commit.statusCheckRollup.state).toBeTruthy(); }); it('does not find commit status in PR Card Header when PR does not include status', async () => { diff --git a/plugins/github-pull-requests-board/src/components/PullRequestCard/PullRequestCard.tsx b/plugins/github-pull-requests-board/src/components/PullRequestCard/PullRequestCard.tsx index 59f7892d0e..b8549052a7 100644 --- a/plugins/github-pull-requests-board/src/components/PullRequestCard/PullRequestCard.tsx +++ b/plugins/github-pull-requests-board/src/components/PullRequestCard/PullRequestCard.tsx @@ -30,7 +30,7 @@ type Props = { author: Author; url: string; reviews: Reviews; - status?: Status; + status?: Status[]; repositoryName: string; repositoryIsArchived: boolean; isDraft: boolean;