Fix prettier and tests.
Signed-off-by: Linnéa Ivansson <liniv742@student.liu.se>
This commit is contained in:
@@ -97,14 +97,14 @@ export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
{errors.length !== 0 &&
|
||||
{errors.length !== 0 && (
|
||||
<Table
|
||||
title="Error Reporting"
|
||||
data={errors}
|
||||
columns={columns}
|
||||
options={{ paging: true, search: false }}
|
||||
/>
|
||||
}
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -45,11 +45,6 @@ describe('KubernetesContent', () => {
|
||||
/>,
|
||||
),
|
||||
);
|
||||
|
||||
expect(getByText('Error Reporting')).toBeInTheDocument();
|
||||
expect(
|
||||
getByText('Nice! There are no errors to report!'),
|
||||
).toBeInTheDocument();
|
||||
expect(getByText('Your Clusters')).toBeInTheDocument();
|
||||
// TODO add a prompt for the user to configure their clusters
|
||||
});
|
||||
@@ -94,9 +89,6 @@ describe('KubernetesContent', () => {
|
||||
),
|
||||
);
|
||||
|
||||
expect(
|
||||
getByText('Nice! There are no errors to report!'),
|
||||
).toBeInTheDocument();
|
||||
expect(getByText('cluster-1')).toBeInTheDocument();
|
||||
expect(getByText('Cluster')).toBeInTheDocument();
|
||||
expect(getByText('10 pods')).toBeInTheDocument();
|
||||
@@ -148,7 +140,7 @@ describe('KubernetesContent', () => {
|
||||
},
|
||||
error: undefined,
|
||||
});
|
||||
const { getByText, getAllByText, queryByText } = render(
|
||||
const { getByText, getAllByText } = render(
|
||||
wrapInTestApp(
|
||||
<KubernetesContent
|
||||
entity={
|
||||
@@ -161,8 +153,6 @@ describe('KubernetesContent', () => {
|
||||
/>,
|
||||
),
|
||||
);
|
||||
|
||||
expect(queryByText('Nice! There are no errors to report!')).toBeNull();
|
||||
expect(getAllByText('Cluster')).toHaveLength(2);
|
||||
expect(getByText('cluster-a')).toBeInTheDocument();
|
||||
expect(getByText('10 pods')).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user