(fn1, fn2)
| 130 | exports.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) { |