Skip to content

Commit

Permalink
Fixed broken FE tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maikofelix47 committed Jul 25, 2023
1 parent d6da53f commit 0aa9828
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/front-end/src/app/components/error/error-alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ErrorAlert: React.FC<{ error: ErrorProps }> = ({ error }) => {
return (
<Alert
message={error.message}
description={error.info.message}
description={error?.info?.message}
type="error"
showIcon
/>
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions apps/front-end/src/app/components/question/question.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { render } from '@testing-library/react';

import Question from './question-list';
import QuestionList from './question-list';

describe('Question', () => {
it('should render successfully', () => {
const { baseElement } = render(<Question />);
const { baseElement } = render(<QuestionList questions={[]} />);
expect(baseElement).toBeTruthy();
});
});

0 comments on commit 0aa9828

Please sign in to comment.