From f66e1d550f599695489f3c1ed70b20fd04abf4a0 Mon Sep 17 00:00:00 2001 From: AlexanderVanOyen Date: Thu, 23 May 2024 16:26:43 +0200 Subject: [PATCH] fix tests passing --- frontend/__test__/ListView.test.tsx | 10 ++++++---- frontend/__test__/StatusButton.test.tsx | 2 -- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/__test__/ListView.test.tsx b/frontend/__test__/ListView.test.tsx index f42fc6fe..600b4e49 100644 --- a/frontend/__test__/ListView.test.tsx +++ b/frontend/__test__/ListView.test.tsx @@ -110,7 +110,7 @@ const mockLastSubmission = { output_test: 'output', }; -const headers = ['name', +const headers1 = ['name', {" " + 'description'} , @@ -118,7 +118,9 @@ const headers = ['name', {" " + 'join_leave'} ]; -const headers_backend = ['name', 'description', 'open', 'join/leave'] +const headers_backend1 = ['name', 'description', 'open', 'join/leave'] + + describe('ListView', () => { @@ -147,8 +149,8 @@ describe('ListView', () => { act(() => { render( () =>
); jest.mock('@mui/icons-material/HelpOutline', () => () =>
); -jest.mock('@mui/x-date-pickers/icons', () => ({ ClearIcon: () =>
})); - describe('StatusButton', () => { let files: any[]; let setFiles: jest.Mock;