MCPcopy Index your code
hub / github.com/exratione/lambda-complex / compareFns

Function compareFns

test/resources/index.js:132–138  ·  view source on GitHub ↗
(fn1, fn2)

Source from the content-addressed store, hash-verified

130exports.getConfigMatcher = function (expectedConfig) {
131
132 function compareFns (fn1, fn2) {
133 if (typeof fn1 === 'function' && typeof fn2 === 'function') {
134 return fn1.toString() === fn2.toString();
135 }
136
137 return fn1 === fn2;
138 }
139
140 // The function provided must return true on a match, false on no match.
141 return sinon.match(function (actualConfig) {

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected