Skip to content
Snippets Groups Projects
GCULink.spec.tsx 515 B
Newer Older
  • Learn to ignore specific revisions
  • Yoan VALLET's avatar
    Yoan VALLET committed
    import React from 'react'
    import { shallow } from 'enzyme'
    
    import LegalNoticeLink from 'components/LegalNotice/LegalNoticeLink'
    
    Yoan VALLET's avatar
    Yoan VALLET committed
    
    jest.mock('cozy-ui/transpiled/react/I18n', () => {
      return {
        useI18n: jest.fn(() => {
          return {
            t: (str: string) => str,
          }
        }),
      }
    })
    
    
    describe('LegalNoticeLink component', () => {
    
    Yoan VALLET's avatar
    Yoan VALLET committed
      it('should be rendered correctly', () => {
    
        const component = shallow(<LegalNoticeLink />).getElement()
    
    Yoan VALLET's avatar
    Yoan VALLET committed
        expect(component).toMatchSnapshot()
      })
    })