All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.widgets.Calendar.CalendarContainer.test.js Maven / Gradle / Ivy

There is a newer version: 7.28.3
Show newest version
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