(name)
| 129 | }`; |
| 130 | |
| 131 | const call = (name) => ({ |
| 132 | type: 'ExpressionStatement', |
| 133 | expression: { |
| 134 | type: 'CallExpression', |
| 135 | callee: { |
| 136 | type: 'MemberExpression', |
| 137 | object: { type: 'Identifier', name: 'console' }, |
| 138 | property: { type: 'Identifier', name: 'log' }, |
| 139 | optional: false, |
| 140 | computed: false |
| 141 | }, |
| 142 | arguments: [{ type: 'Identifier', name }], |
| 143 | optional: false |
| 144 | } |
| 145 | }); |
| 146 | |
| 147 | assert.deepEqual(fn.body.body, [ |
| 148 | { leadingComments: undefined, ...call('a') }, |
no outgoing calls
no test coverage detected
searching dependent graphs…