Passed
Push — master ( 0494db...5e1e13 )
by Zhenyu
01:23
created

tag-service.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 6
rs 9.4285

1 Function

Rating   Name   Duplication   Size   Complexity  
A tag-service.js ➔ ... ➔ ??? 0 1 1
1
import tagService from '../tag-service';
2
3
it('create enhancer to add service to meta of action functions', () => {
4
	const actionFunction = (params, meta) => meta;
5
	const enhanced = tagService('some-service')(actionFunction);
6
	const result = enhanced({}, {});
7
	expect(result).toEqual({ service: 'some-service' });
8
});
9