MCPcopy Index your code
hub / github.com/angular/components / checkNode

Function checkNode

src/material/tree/tree.spec.ts:766–774  ·  view source on GitHub ↗
(node: Element, expectedNode: NodeContent)

Source from the content-addressed store, hash-verified

764 const missedExpectations: string[] = [];
765
766 function checkNode(node: Element, expectedNode: NodeContent) {
767 const actualTextContent = node.textContent!.trim();
768 const expectedTextContent = expectedNode[expectedNode.length - 1];
769 if (actualTextContent !== expectedTextContent) {
770 missedExpectations.push(
771 `Expected node contents to be ${expectedTextContent} but was ${actualTextContent}`,
772 );
773 }
774 }
775
776 function checkLevel(node: Element, expectedNode: NodeContent) {
777 const rawLevel = (node as HTMLElement).style.paddingLeft;

Callers 1

expectFlatTreeToMatchFunction · 0.70

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…