(target, method, replacement)
| 5 | var Promise = require('../../lib/Promise'); |
| 6 | |
| 7 | function replace(target, method, replacement) { |
| 8 | var tmp = target[method]; |
| 9 | target[method] = function() { |
| 10 | target[method] = tmp; |
| 11 | return replacement.apply(this, arguments); |
| 12 | }; |
| 13 | } |
| 14 | |
| 15 | buster.testCase('when/unhandledRejectionApi', { |
| 16 |
no outgoing calls
no test coverage detected
searching dependent graphs…