Skip to content
Snippets Groups Projects
ElecInfoModal.spec.tsx 383 B
Newer Older
  • Learn to ignore specific revisions
  • import { mount } from 'enzyme'
    import toJson from 'enzyme-to-json'
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    import React from 'react'
    
    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()
      })
    })