(src: string, needle: string, language: 'tsx' | 'typescript' | 'swift' = 'tsx')
| 382 | // ============================================================================= |
| 383 | |
| 384 | async function argsAt(src: string, needle: string, language: 'tsx' | 'typescript' | 'swift' = 'tsx') { |
| 385 | const line = lineOf(src, needle); |
| 386 | const column = src.split('\n')[line - 1]!.indexOf(needle); |
| 387 | return callArgumentsInSource(src, language, line, column); |
| 388 | } |
| 389 | |
| 390 | describe('call arguments', () => { |
| 391 | const login = ` |
no test coverage detected