This commit is contained in:
wrzesinski-hubert 2021-01-14 14:27:59 +01:00
parent b06a6ec07e
commit 57cb77e643

View File

@ -0,0 +1,20 @@
import React from 'react';
import { cleanup, fireEvent, waitForElement, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { customRender,customRenderCAS } from '../../customRender';
import {Scheduler} from '../Scheduler';
beforeAll(() => {
delete window.location;
window.location = { replace: jest.fn() };
});
afterAll(() => {
window.location = location;
});
test('renders component', async () => {
const addItem = jest.fn();
customRender(<Scheduler/>);
expect(screen.getByText(/chuj/i)).toBeInTheDocument();
});