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__/AddToCart.test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'frontend/__tests__/AddToCart.test.js') diff --git a/frontend/__tests__/AddToCart.test.js b/frontend/__tests__/AddToCart.test.js index 2285b3b..f049152 100644 --- a/frontend/__tests__/AddToCart.test.js +++ b/frontend/__tests__/AddToCart.test.js @@ -10,13 +10,17 @@ const currentUser = { describe('', () => { it('renders and matches snapshot', () => { - const wrapper = shallow( {}} currentUser={currentUser} />); + const wrapper = shallow( + {}} currentUser={currentUser} /> + ); expect(toJSON(wrapper)).toMatchSnapshot(); }); it('adds an item to the cart', () => { const addToCart = jest.fn(() => Promise.resolve()); - const wrapper = shallow(); + const wrapper = shallow( + + ); wrapper.simulate('click'); expect(addToCart).toHaveBeenCalled(); expect(addToCart).toHaveBeenCalledWith({ variables: { id: 'abc123' } }); -- cgit v1.3