(m: string)
| 1313 | |
| 1314 | // Format method name |
| 1315 | const formatMethod = (m: string) => { |
| 1316 | return m |
| 1317 | .replace(/_/g, ' ') |
| 1318 | .split(' ') |
| 1319 | .map(word => word.charAt(0).toUpperCase() + word.slice(1)) |
| 1320 | .join(' '); |
| 1321 | }; |
| 1322 | |
| 1323 | const hasInput = input && Object.keys(input).length > 0; |
| 1324 | const inputString = hasInput ? JSON.stringify(input, null, 2) : ''; |