(html: string)
| 645 | }); |
| 646 | |
| 647 | function parseHtml(html: string): html.Node[] { |
| 648 | const htmlParser = new HtmlParser(); |
| 649 | const parseResult = htmlParser.parse(html, 'extractor spec', {tokenizeExpansionForms: true}); |
| 650 | if (parseResult.errors.length > 1) { |
| 651 | throw new Error(`unexpected parse errors: ${parseResult.errors.join('\n')}`); |
| 652 | } |
| 653 | return parseResult.rootNodes; |
| 654 | } |
| 655 | |
| 656 | function fakeTranslate( |
| 657 | content: string, |
no test coverage detected
searching dependent graphs…