(str: string)
| 21 | } |
| 22 | |
| 23 | function toPascalCase(str: string): string { |
| 24 | return str.replace( |
| 25 | /\w+/g, |
| 26 | word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(), |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | push(`var client = new RestClient("${fullUrl}");`); |
| 31 | push(`var request = new RestRequest("", Method.${toPascalCase(method)});`); |
no outgoing calls
no test coverage detected
searching dependent graphs…