(node: Element, expectedNode: any[])
| 1641 | const missedExpectations: string[] = []; |
| 1642 | |
| 1643 | function checkNode(node: Element, expectedNode: any[]) { |
| 1644 | const actualTextContent = node.textContent!.trim(); |
| 1645 | const expectedTextContent = expectedNode[expectedNode.length - 1]; |
| 1646 | if (actualTextContent !== expectedTextContent) { |
| 1647 | missedExpectations.push( |
| 1648 | `Expected node contents to be ${expectedTextContent} but was ${actualTextContent}`, |
| 1649 | ); |
| 1650 | } |
| 1651 | } |
| 1652 | |
| 1653 | function checkLevel(node: Element, expectedNode: any[]) { |
| 1654 | const rawLevel = (node as HTMLElement).style.paddingLeft; |
no test coverage detected