Passed
Push — master ( 47be65...2dbb1a )
by Zhenyu
03:25
created

transaction-id.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 7
rs 9.4285
nop 0
1
import addTransactionId from '../transaction-id';
2
3
it('add transactionId to req.meta', () => {
4
	const req = {};
5
	const res = {};
6
	const next = jest.fn();
7
	addTransactionId(req, res, next);
8
	expect(req.meta).toHaveProperty('transactionId', expect.anything());
9
});
10