(msg)
| 98 | } |
| 99 | |
| 100 | function mustNotCall(msg) { |
| 101 | const callSite = getCallSite(mustNotCall); |
| 102 | return function mustNotCall(...args) { |
| 103 | args = args.map(inspect).join(', '); |
| 104 | const argsInfo = (args.length > 0 |
| 105 | ? `\ncalled with arguments: ${args}` |
| 106 | : ''); |
| 107 | assert.fail( |
| 108 | `${msg || 'function should not have been called'} at ${callSite}` |
| 109 | + argsInfo); |
| 110 | }; |
| 111 | } |
| 112 | |
| 113 | function setup(title, configs) { |
| 114 | const { |
no test coverage detected
searching dependent graphs…