diff --git a/src/components/Administrator.tsx b/src/components/Administrator.tsx index dcd274b..dcc802e 100644 --- a/src/components/Administrator.tsx +++ b/src/components/Administrator.tsx @@ -98,11 +98,6 @@ export const Administrator = () => { const [endSecondDate, setEndSecondDate] = useState(null); const [loading, setLoading] = useState(false); - useEffect(() => { - if (startFirstDate !== null) { - console.log(format(startFirstDate, 'dd.MM.yyyy')); - } - }, [startFirstDate]); const uploadFile = async (event: React.FormEvent) => { const action = (key: any) => ( @@ -147,7 +142,6 @@ export const Administrator = () => { variant: 'success', action, }); - console.log(response); } catch (e) { enqueueSnackbar('Zapisywanie planu nie powiodło się', { variant: 'error', diff --git a/src/components/SchedulerHistoryNavigation.tsx b/src/components/SchedulerHistoryNavigation.tsx index bd3c680..93f8c7f 100644 --- a/src/components/SchedulerHistoryNavigation.tsx +++ b/src/components/SchedulerHistoryNavigation.tsx @@ -70,7 +70,6 @@ export const SchedulerHistoryNavigation = ({ { - console.log('left clicked'); SubstractCurrentTimetable(-1); }} > @@ -80,7 +79,6 @@ export const SchedulerHistoryNavigation = ({ { - console.log('right clicked'); AddCurrentTimetable(1); }} > diff --git a/src/components/__tests__/Topbar.test.jsx b/src/components/__tests__/Topbar.test.jsx index c0bf2f1..b66fcaa 100644 --- a/src/components/__tests__/Topbar.test.jsx +++ b/src/components/__tests__/Topbar.test.jsx @@ -22,20 +22,10 @@ test('input should display default placeholder for student', async () => { const { getByPlaceholderText, getByText, debug } = customRender( {}} />); setTimeout(()=>{const input = getByPlaceholderText('Wyszukaj przedmioty...'); expect(input).toBeInTheDocument();},2000); - // fireEvent.change(input, { target: { value: '122' } }); - // console.log(debug()); - // const textNode = await waitForElement(() => getByText('asdasdsa')); - // console.log(debug()); - }); test('input should display changed value', async () => { const { getByPlaceholderText, getByText, debug } = customRender( {}} />); setTimeout(()=>{ const input = getByPlaceholderText('Wyszukaj przedmioty...'); - fireEvent.change(input, { target: { value: '122' } });expect(input.value).toBe("122");},2000); - - - // console.log(debug()); - // console.log(debug()); - + fireEvent.change(input, { target: { value: '122' } });expect(input.value).toBe("122");},2000); }); diff --git a/src/contexts/CoursesProvider.tsx b/src/contexts/CoursesProvider.tsx index b678230..89bc8df 100644 --- a/src/contexts/CoursesProvider.tsx +++ b/src/contexts/CoursesProvider.tsx @@ -220,7 +220,6 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => { const { data } = await axiosInstance.get | []>( `${process.env.REACT_APP_API_URL}/api/v1/commisions/user/${studentId}?groups=true`, ); - console.log('data is mordo: ', data); setTimetableHistory(data); } catch (e) { console.log(e); @@ -264,7 +263,6 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => { } } } - console.log('baskeeeeeet: ', basket); setHistoryBasket(basket); }; @@ -277,8 +275,6 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => { }, 600); }, []); - console.log("123,",userID,courses,basket) - return (