Newer
Older
import { mount } from 'enzyme'
import toJson from 'enzyme-to-json'
import ElecInfoModal from './ElecInfoModal'
describe('ElecInfoModal component', () => {
it('should be rendered correctly', () => {
const component = mount(
<ElecInfoModal open={true} handleCloseClick={jest.fn()} />
)
expect(toJson(component)).toMatchSnapshot()
})
})