test/support.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 23
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 16
mnd 0
bc 0
fnc 4
dl 0
loc 23
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

4 Functions

Rating   Name   Duplication   Size   Complexity  
A Container.render 0 2 1
A Container.fetchData 0 2 1
A Dummy.render 0 2 1
A support.js ➔ makeStore 0 3 1
1
import React, { Component } from 'react';
2
import { createStore } from 'redux';
3
import reducer from '../src/module';
4
5
export class Container extends Component {
6
  static fetchData() {
7
    return Promise.resolve('done');
8
  }
9
  render() {
10
    return <div/>;
11
  }
12
}
13
14
export class Dummy extends Component {
15
  render() {
16
    return <div/>;
17
  }
18
}
19
20
export function makeStore(initialState) {
21
  return createStore(reducer, initialState);
22
}
23