From 88ef4bd2df970cb6ea89123ffdd7fcb21dbc0f15 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 19 Apr 2018 10:09:51 -0400 Subject: xxxxxx --- frontend/__tests__/SingleItem.test.js | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'frontend/__tests__/SingleItem.test.js') diff --git a/frontend/__tests__/SingleItem.test.js b/frontend/__tests__/SingleItem.test.js index 313784e..3fe3943 100644 --- a/frontend/__tests__/SingleItem.test.js +++ b/frontend/__tests__/SingleItem.test.js @@ -1,19 +1,13 @@ import React from 'react'; -import { shallow, mount } from 'enzyme'; +import { mount } from 'enzyme'; import wait from 'waait'; import toJSON from 'enzyme-to-json'; import SingleItem from '../components/SingleItem'; -import { ApolloProvider } from 'react-apollo'; -import mockClient from './mockMang'; -import { SINGLE_ITEM_QUERY } from '../queries/queries'; +import mountOptions from './mockMang'; describe('', () => { it('Renders with Proper Data', async () => { - const wrapper = mount( - - - - ); + const wrapper = mount(, mountOptions); await wait(); wrapper.update(); @@ -21,11 +15,7 @@ describe('', () => { expect(toJSON(Item)).toMatchSnapshot(); }); - it('Errors with a not found Item', async () => { - const wrapper = mount( - - - - ); + xit('Errors with a not found Item', async () => { + const wrapper = mount(, mountOptions); }); }); -- cgit v1.3