(node: Element, expectedNode: any[])
| 1656 | const missedExpectations: string[] = []; |
| 1657 | |
| 1658 | function checkNode(node: Element, expectedNode: any[]) { |
| 1659 | const actualTextContent = node.textContent!.trim(); |
| 1660 | const expectedTextContent = expectedNode[expectedNode.length - 1]; |
| 1661 | if (actualTextContent !== expectedTextContent) { |
| 1662 | missedExpectations.push( |
| 1663 | `Expected node contents to be ${expectedTextContent} but was ${actualTextContent}`, |
| 1664 | ); |
| 1665 | } |
| 1666 | } |
| 1667 | |
| 1668 | function checkLevel(node: Element, expectedNode: any[]) { |
| 1669 | const rawLevel = (node as HTMLElement).style.paddingLeft; |
no test coverage detected