Code coverage report for nock/lib/mixin.js

Statements: 81.82% (9 / 11)      Branches: 50% (2 / 4)      Functions: 100% (1 / 1)      Lines: 100% (9 / 9)      Ignored: none     

All files » nock/lib/ » mixin.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  1   1 2 2 2 2 2   2     1  
'use strict';
var _ = require("lodash");
 
function mixin(a, b) {
	Iif (! a) { a = {}; }
	Iif (! b) {b = {}; }
	a = _.cloneDeep(a);
	for(var prop in b) {
		a[prop] = b[prop];
	}
	return a;
}
 
module.exports = mixin;