console logi

This commit is contained in:
wrzesinski-hubert
2021-01-14 15:32:50 +01:00
parent 0d433c12ad
commit b7424826ad
4 changed files with 1 additions and 23 deletions

View File

@ -98,11 +98,6 @@ export const Administrator = () => {
const [endSecondDate, setEndSecondDate] = useState<Date | null>(null);
const [loading, setLoading] = useState(false);
useEffect(() => {
if (startFirstDate !== null) {
console.log(format(startFirstDate, 'dd.MM.yyyy'));
}
}, [startFirstDate]);
const uploadFile = async (event: React.FormEvent<HTMLFormElement>) => {
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',

View File

@ -70,7 +70,6 @@ export const SchedulerHistoryNavigation = ({
<StyledButton
direction="left"
onClick={() => {
console.log('left clicked');
SubstractCurrentTimetable(-1);
}}
>
@ -80,7 +79,6 @@ export const SchedulerHistoryNavigation = ({
<StyledButton
direction="right"
onClick={() => {
console.log('right clicked');
AddCurrentTimetable(1);
}}
>

View File

@ -22,20 +22,10 @@ test('input should display default placeholder for student', async () => {
const { getByPlaceholderText, getByText, debug } = customRender(<Topbar handleTransfer={() => {}} />);
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(<Topbar handleTransfer={() => {}} />);
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);
});