Whether the first `marker` in `src` is template text; null when the scan gives up.
(src: string, marker: string)
| 155 | describe('templateLiteralTextAt', () => { |
| 156 | /** Whether the first `marker` in `src` is template text; null when the scan gives up. */ |
| 157 | function inText(src: string, marker: string): boolean | null { |
| 158 | const at = templateLiteralTextAt(src); |
| 159 | return at === null ? null : at(src.indexOf(marker)); |
| 160 | } |
| 161 | |
| 162 | it('tells a template text from the code around it and in its interpolations', () => { |
| 163 | const src = 'const a = `TEXT ${CODE} MORE`;\nAFTER'; |
no test coverage detected