blob: 0936e976000629fdf3d26ad1a69b9a38b654b710 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import React from 'react';
import { shallow, mount } from 'enzyme';
import toJSON from 'enzyme-to-json';
import { Cart } from '../components/Cart';
const cartItem = {
item: { price: 5000 },
quantity: 10,
};
const currentUser = {
me: {
cart: [cartItem, cartItem, cartItem],
},
refetch() {},
};
describe('<Cart/>', () => {
it('renders', () => {
const wrapper = shallow(<Cart currentUser={currentUser} />);
});
xit('opens', () => {
const wrapper = shallow(<Cart currentUser={currentUser} />);
expect('wes').toEqual('figure out how to call test context');
});
// it('renders', () => {
// shallow(<Cart currentUser={currentUserLoggedOut} />);
// });
});
|