(message)
| 45 | } |
| 46 | |
| 47 | function makeFailingExecTracker(message) { |
| 48 | const calls = []; |
| 49 | const stub = function (bin, args) { |
| 50 | calls.push({ bin, args: Array.isArray(args) ? args.slice() : [] }); |
| 51 | throw new Error(message); |
| 52 | }; |
| 53 | stub.calls = calls; |
| 54 | return stub; |
| 55 | } |
| 56 | |
| 57 | function commandName(bin) { |
| 58 | return String(bin || '').split(/[\\/]/).pop().toLowerCase(); |
no outgoing calls
no test coverage detected