![JAR search and dependency download from the Maven repository](/logo.png)
components.widgets.Calendar.CalendarContainer.test.js Maven / Gradle / Ivy
import React from 'react'
import { Provider } from 'react-redux'
import { WIDGETS } from '../../../core/factory/factoryLevels'
import configureStore from '../../../store'
import history from '../../../history'
import metadata from './CalendarWidget.meta'
import CalendarContainer from './CalendarContainer'
const store = configureStore({}, history, {})
const setup = propsOverride => mount(
,
)
describe(' ', () => {
it('отрисовка', () => {
const wrapper = setup()
expect(wrapper.find(CalendarContainer).exists()).toBe(true)
})
// it('срабатывает action на клик по ячейке', () => {
// const event = { disabled: false };
// const dispatch = sinon.spy();
//
// const wrapper = setup({ defaultView: 'week', dispatch: dispatch });
// wrapper.find(timeSlotWrapper).first().simulate('select', event);
// expect(dispatch.calledOnce).toBeTruthy();
// });
})
© 2015 - 2025 Weber Informatics LLC | Privacy Policy