Fix app test.

master
Tom Hacohen 7 years ago
parent 6d83124376
commit d51dd7108b

@ -1,8 +1,15 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './App';
import { store } from './store';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>
, div);
});

@ -231,7 +231,7 @@ let middleware = [
promiseMiddleware,
];
if (process.env.NODE_ENV !== 'production') {
if (process.env.NODE_ENV === 'development') {
middleware.push(createLogger());
}

Loading…
Cancel
Save