src/__tests__/index.js   A
last analyzed

Complexity

Total Complexity 8
Complexity/F 1

Size

Lines of Code 39
Function Count 8

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

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