{"size": 1199, "ext": "js", "max_stars_repo_path": "client/src/test/containers/BookAddReview.test.js", "max_stars_repo_name": "yusufyilmz/bookreviewreactexpressapp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/test/containers/BookAddReview.test.js", "max_issues_repo_name": "yusufyilmz/bookreviewreactexpressapp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/test/containers/BookAddReview.test.js", "max_forks_repo_name": "yusufyilmz/bookreviewreactexpressapp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.5476190476, "max_line_length": 65, "alphanum_fraction": 0.658882402}
import React from 'react';
import { expect } from 'chai'
import { shallow, mount } from 'enzyme'
import BookAddReview from 'containers/BookAddReview';
import TextField from 'components/TextField';
import Button from 'components/Button';
import BookReview from 'components/BookReview';
import sinon from 'sinon';
import configureStore from 'redux-mock-store'
import ReduxThunkMiddleware from 'redux-thunk';
import ReduxPromiseMiddleware from 'redux-promise';
import { Provider } from 'react-redux';
import { Redirect, BrowserRouter } from 'react-router-dom';

let middlewares = [ReduxThunkMiddleware, ReduxPromiseMiddleware]
describe("BookAddReview container", () => {
    let component;
    let actions;
    const mockStore = configureStore(middlewares);
    let store, container, authenticatedContainer;
    const initialState = {
        book: {
            reviewAdded: false
        }
    }

    beforeEach(() => {
        store = mockStore(initialState)
        container = mount(<Provider store={store}>
            <BookAddReview />
        </Provider>);

    })

    it('has length 1', () => {
        expect(container.length).equal(1)
    });

})


