* Converts a static HTML to a DOM structure. * * @param html the rendered html in test * @param doc the document object * @returns a div element containing a copy of the app contents
(html: string, doc: Document)
| 74 | * @returns a div element containing a copy of the app contents |
| 75 | */ |
| 76 | function convertHtmlToDom(html: string, doc: Document): HTMLElement { |
| 77 | const contents = getAppContents(html); |
| 78 | const container = doc.createElement('div'); |
| 79 | container.innerHTML = contents; |
| 80 | return container; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Reset TView, so that we re-enter the first create pass as |
no test coverage detected
searching dependent graphs…