From 93495ce146c4e81ecfab3a0bca99460e75a759da Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 20 Mar 2018 21:52:36 -0400 Subject: tests --- frontend/__tests__/Cart.test.js | 9 +---- frontend/__tests__/__snapshots__/Cart.test.js.snap | 43 +--------------------- 2 files changed, 3 insertions(+), 49 deletions(-) (limited to 'frontend/__tests__') diff --git a/frontend/__tests__/Cart.test.js b/frontend/__tests__/Cart.test.js index 1e7d7f5..2ee87a2 100644 --- a/frontend/__tests__/Cart.test.js +++ b/frontend/__tests__/Cart.test.js @@ -18,12 +18,7 @@ const currentUser = { describe('', () => { it('renders', () => { - const wrapper = mount( - - - - ); - - expect(toJSON(wrapper)).toMatchSnapshot(); + const wrapper = shallow(); + console.log(wrapper.first()); }); }); diff --git a/frontend/__tests__/__snapshots__/Cart.test.js.snap b/frontend/__tests__/__snapshots__/Cart.test.js.snap index b2b6bc7..65a7e7a 100644 --- a/frontend/__tests__/__snapshots__/Cart.test.js.snap +++ b/frontend/__tests__/__snapshots__/Cart.test.js.snap @@ -1,44 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` renders 1`] = ` -<[object Object] - value={ - Object { - "state": Object { - "isCartOpen": false, - }, - "toggle": [Function], - } - } -> - - -`; +exports[` renders 1`] = `<[object Object] />`; -- cgit v1.3