@@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user