import React from 'react'; import { shallow } from 'enzyme'; import Countdown from '.'; describe('Component', () => { test('renders', () => { const wrapper = shallow( alert('Click') }} assetSrc="https://images.ctfassets.net/aagggu2xeezl/7440qCsisFBDiVDeu94yQq/a8990999dd3b1ae3867db681efcfe2ac/2007_location_classic_the-cevennes_01.jpeg" /> ); expect(wrapper).toMatchSnapshot(); }); test('renders with link', () => { const wrapper = shallow( ); expect(wrapper).toMatchSnapshot(); }); });