components.buttons.Dropdown.Dropdown.test.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import configureMockStore from 'redux-mock-store'
import { Provider } from 'react-redux'
import createFactoryConfig from '../../../core/factory/createFactoryConfig'
import FactoryProvider from '../../../core/factory/FactoryProvider'
import Dropdown from './Dropdown'
const mockStore = configureMockStore()
const setup = (props) => {
const store = mockStore({ toolbar: {} })
const wrapper = mount(
,
)
return { store, wrapper }
}
describe(' ', () => {
it('Создание', () => {
const { wrapper } = setup()
expect(wrapper.find('.n2o-dropdown').exists()).toBeTruthy()
})
})