/* eslint-env jest */ import React from 'react'; import Enzyme, { shallow, mount } from 'enzyme'; import toJSON from 'enzyme-to-json'; import ItemComponent from '../components/Item'; const fakeItem = { id: 'ABC123', title: 'A Cool Item', price: 5000, description: 'This item is really cool!', image: 'dog.jpg', largeImage: 'largedog.jpg', }; describe('', () => { it('Renders and matches snapshot', () => { const wrapper = shallow(); expect(toJSON(wrapper)).toMatchSnapshot(); }); });