Completed
Pull Request — master (#81)
by Alejandro
03:26
created

src/container/store.js   A

Complexity

Total Complexity 2
Complexity/F 0

Size

Lines of Code 13
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 33.33%

Importance

Changes 0
Metric Value
cc 2
eloc 9
nc 1
dl 0
loc 13
ccs 2
cts 6
cp 0.3333
crap 3.1852
rs 10
c 0
b 0
f 0
wmc 2
mnd 1
bc 0
fnc 0
bpm 0
cpm 0
noi 0
1
import ReduxThunk from 'redux-thunk';
2
import { applyMiddleware, compose, createStore } from 'redux';
3 4
import reducers from '../reducers';
4
5 4
const composeEnhancers = process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
6
  ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
7
  : compose;
8
9
const store = createStore(reducers, composeEnhancers(
10
  applyMiddleware(ReduxThunk)
11
));
12
13
export default store;
14