summaryrefslogtreecommitdiffstats
path: root/frontend/__tests__
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/__tests__')
-rw-r--r--frontend/__tests__/Cart.test.js9
-rw-r--r--frontend/__tests__/__snapshots__/Cart.test.js.snap43
2 files changed, 3 insertions, 49 deletions
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('<Cart/>', () => {
it('renders', () => {
- const wrapper = mount(
- <UIProvider>
- <Cart currentUser={currentUser} />
- </UIProvider>
- );
-
- expect(toJSON(wrapper)).toMatchSnapshot();
+ const wrapper = shallow(<Cart currentUser={currentUser} />);
+ 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[`<Cart/> renders 1`] = `
-<[object Object]
- value={
- Object {
- "state": Object {
- "isCartOpen": false,
- },
- "toggle": [Function],
- }
- }
->
- <Cart
- currentUser={
- Object {
- "me": Object {
- "cart": Array [
- Object {
- "item": Object {
- "price": 5000,
- },
- "quantity": 10,
- },
- Object {
- "item": Object {
- "price": 5000,
- },
- "quantity": 10,
- },
- Object {
- "item": Object {
- "price": 5000,
- },
- "quantity": 10,
- },
- ],
- },
- "refetch": [Function],
- }
- }
- />
-</[object Object]>
-`;
+exports[`<Cart/> renders 1`] = `<[object Object] />`;