1 import React from 'react';
2 import thunk from 'redux-thunk';
4 import configureMockStore from 'redux-mock-store';
5 import expect from 'expect';
7 import Inventory from 'app/inventory/Inventory';
8 import {shallow} from 'enzyme';
11 const mockStore = configureMockStore([thunk]);
12 const store = mockStore({inventoryReducer: {}});
14 describe('Inventory component', () => {
16 fetch = require('jest-fetch-mock');
18 it('should be rendered', () => {
21 let wrapper = shallow(
22 <Inventory store={store}/>
26 let actual = wrapper.render().text();
27 expect(actual).toInclude('Active Inventory');