src/Components/BiddingFunctionsPage/BiddingFunctionsPage.test.jsx
import { shallow } from 'enzyme';
import TestUtils from 'react-dom/test-utils';
import { Provider } from 'react-redux';
import { MemoryRouter } from 'react-router-dom';
import configureStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import BiddingFunctionsPage from './BiddingFunctionsPage';
const middlewares = [thunk];
const mockStore = configureStore(middlewares);
describe('BiddingFunctionsPage', () => {
it('mounts', () => {
const wrapper = TestUtils.renderIntoDocument(<Provider store={mockStore({})}><MemoryRouter>
<BiddingFunctionsPage />
</MemoryRouter></Provider>);
expect(wrapper).toBeDefined();
});
it('is defined', () => {
const wrapper = shallow(<BiddingFunctionsPage />);
expect(wrapper).toBeDefined();
});
});