Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
This commit is contained in:
Andrew Johnson
2021-04-06 14:11:19 +01:00
parent 612a9c0339
commit b4c269777b
2 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -85,8 +85,9 @@ const OverviewContent = () => (
<Grid container spacing={3} alignItems="stretch">
// ...
<Grid item xs={12} sm={6} md={4}>
<EntityGithubDeploymentsCard host='your-github-host.com' />
<EntityGithubDeploymentsCard host="your-github-host.com" />
</Grid>
// ...
</Grid>
);
);
```
@@ -190,9 +190,11 @@ describe('github-deployments', () => {
</ApiProvider>,
);
expect(await rendered.findByText(
'Warning: No matching GitHub integration configuration for host unknown-host.com, please check your integrations config',
)).toBeInTheDocument();
expect(
await rendered.findByText(
'Warning: No matching GitHub integration configuration for host unknown-host.com, please check your integrations config',
),
).toBeInTheDocument();
});
it('shows error when baseApiURL does not exist for host', async () => {
@@ -208,9 +210,11 @@ describe('github-deployments', () => {
</ApiProvider>,
);
expect(await rendered.findByText(
'Warning: No apiBaseUrl available for host missing-api-base-url.com',
)).toBeInTheDocument();
expect(
await rendered.findByText(
'Warning: No apiBaseUrl available for host missing-api-base-url.com',
),
).toBeInTheDocument();
});
});
});