Skip to content

Commit

Permalink
fix tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderVanOyen committed May 23, 2024
1 parent 5cea005 commit f66e1d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions frontend/__test__/ListView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,17 @@ const mockLastSubmission = {
output_test: 'output',
};

const headers = ['name',
const headers1 = ['name',
<React.Fragment key="description"><NotesIcon
style={{fontSize: '20px', verticalAlign: 'middle', marginBottom: '3px'}}/>{" " + 'description'}
</React.Fragment>,
, 'open',
<React.Fragment key="joinleave"><MeetingRoomIcon
style={{fontSize: '20px', verticalAlign: 'middle', marginBottom: '3px'}}/>{" " + 'join_leave'}
</React.Fragment>];
const headers_backend = ['name', 'description', 'open', 'join/leave']
const headers_backend1 = ['name', 'description', 'open', 'join/leave']




describe('ListView', () => {
Expand Down Expand Up @@ -147,8 +149,8 @@ describe('ListView', () => {
act(() => {
render(<ListView
admin={true}
headers={headers}
headers_backend={headers_backend}
headers={headers1}
headers_backend={headers_backend1}
sortable={[true, true, true, true]}
get={'courses'}
search_text={"search_course"}
Expand Down
2 changes: 0 additions & 2 deletions frontend/__test__/StatusButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import StatusButton from '@app/[locale]/components/StatusButton';

jest.mock('@mui/icons-material/Check', () => () => <div data-testid="check-icon" />);
jest.mock('@mui/icons-material/HelpOutline', () => () => <div data-testid="help-icon" />);
jest.mock('@mui/x-date-pickers/icons', () => ({ ClearIcon: () => <div data-testid="clear-icon" /> }));

describe('StatusButton', () => {
let files: any[];
let setFiles: jest.Mock;
Expand Down

0 comments on commit f66e1d5

Please sign in to comment.