Skip to content
Snippets Groups Projects
NoDataModal.spec.tsx 372 B
Newer Older
  • Learn to ignore specific revisions
  • import toJson from 'enzyme-to-json'
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    import React from 'react'
    
    import NoDataModal from './NoDataModal'
    
    describe('NoDataModal component', () => {
    
      it('should render correctly', async () => {
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
          <NoDataModal open={true} handleCloseClick={jest.fn()} />
    
        expect(toJson(wrapper)).toMatchSnapshot()