src/__tests__/index.js   A
last analyzed

Complexity

Total Complexity 10
Complexity/F 1

Size

Lines of Code 48
Function Count 10

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
B index.js ➔ ??? 0 37 1
1
import logger, {
2
	loggerEvent,
3
	logAction,
4
	logOperation,
5
	addTransactionId,
6
	toMiddleware,
7
	tagService,
8
	enhancedRender,
9
	compose,
10
} from '../index';
11
12
describe('n-auto-logger exports', () => {
13
	it('logger', () => {
14
		expect(typeof logger).toBe('object');
15
	});
16
17
	it('loggerEvent', () => {
18
		expect(typeof loggerEvent).toBe('function');
19
	});
20
21
	it('logAction', () => {
22
		expect(typeof logAction).toBe('function');
23
	});
24
25
	it('logOperation', () => {
26
		expect(typeof logOperation).toBe('function');
27
	});
28
29
	it('toMiddleware', () => {
30
		expect(typeof toMiddleware).toBe('function');
31
	});
32
33
	it('addTransactionId', () => {
34
		expect(typeof addTransactionId).toBe('function');
35
	});
36
37
	it('tagService', () => {
38
		expect(typeof tagService).toBe('function');
39
	});
40
41
	it('enhancedRender', () => {
42
		expect(typeof enhancedRender).toBe('function');
43
	});
44
45
	it('compose', () => {
46
		expect(typeof compose).toBe('function');
47
	});
48
});
49