Fixing test
Signed-off-by: Thorsten Gilfert <thorsten.gilfert@bbraun.com>
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ type Props = {
|
||||
author: Author;
|
||||
url: string;
|
||||
reviews: Reviews;
|
||||
status?: Status;
|
||||
status?: Status[];
|
||||
repositoryName: string;
|
||||
repositoryIsArchived: boolean;
|
||||
isDraft: boolean;
|
||||
|
||||
Reference in New Issue
Block a user