Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 19 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import PlumbingReducerClass from '../PlumbingReducerClass' |
||
2 | |||
3 | |||
4 | it('test action type', () => { |
||
|
|||
5 | class Reducer { |
||
6 | static test(state) { |
||
7 | return state |
||
8 | } |
||
9 | |||
10 | static _test(state) { |
||
11 | return state |
||
12 | } |
||
13 | } |
||
14 | |||
15 | PlumbingReducerClass('test')(Reducer) |
||
16 | |||
17 | expect(Reducer.test.actionType).toEqual('TEST__TEST') |
||
18 | expect(Reducer._test.actionType).toBeUndefined() |
||
19 | }) |
||
20 |