Fix app test.

master
Tom Hacohen 7 years ago
parent 6d83124376
commit d51dd7108b

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

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

Loading…
Cancel
Save