Passed
Push — master ( 7cf5fc...99bcaf )
by Zhenyu
01:46
created

src/__tests__/index.js   A

Complexity

Total Complexity 7
Complexity/F 1

Size

Lines of Code 34
Function Count 7

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 7
c 1
b 0
f 0
nc 1
mnd 0
bc 7
fnc 7
dl 0
loc 34
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
B index.js ➔ ??? 0 25 1
1
import {
2
	compose,
3
	toMiddleware,
4
	addMeta,
5
	enhancedRender,
6
	createEnhancer,
7
	isPromise,
8
} from '../index';
9
10
describe('n-express-enhancer exports', () => {
11
	it('compose', () => {
12
		expect(typeof compose).toBe('function');
13
	});
14
15
	it('toMiddleware', () => {
16
		expect(typeof toMiddleware).toBe('function');
17
	});
18
19
	it('addMeta', () => {
20
		expect(typeof addMeta).toBe('function');
21
	});
22
23
	it('enhancedRender', () => {
24
		expect(typeof enhancedRender).toBe('function');
25
	});
26
27
	it('createEnhancer', () => {
28
		expect(typeof createEnhancer).toBe('function');
29
	});
30
31
	it('isPromise', () => {
32
		expect(typeof isPromise).toBe('function');
33
	});
34
});
35