Fixing test

Signed-off-by: Thorsten Gilfert <thorsten.gilfert@bbraun.com>
This commit is contained in:
Thorsten Gilfert
2024-04-08 13:56:42 +00:00
parent c6cafe64c7
commit c03e306778
2 changed files with 2 additions and 2 deletions
@@ -67,7 +67,7 @@ describe('<CardHeader/>', () => {
it('finds commit status in PR Card Header', async () => {
await renderInTestApp(<CardHeader {...props} />);
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 () => {
@@ -30,7 +30,7 @@ type Props = {
author: Author;
url: string;
reviews: Reviews;
status?: Status;
status?: Status[];
repositoryName: string;
repositoryIsArchived: boolean;
isDraft: boolean;