Newer
Older
import toJson from 'enzyme-to-json'
import MinorUpdateContent from './MinorUpdateContent'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
describe('Minor update content component', () => {
const component = mount(<MinorUpdateContent />)
expect(toJson(component)).toMatchSnapshot()