Skip to content

Commit 11ae3ce

Browse files
committed
Illustrate bug in tree test
1 parent 32808a6 commit 11ae3ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/material/tree/tree.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,10 @@ function expectFlatTreeToMatch(treeElement: Element, expectedPaddingIndent: numb
567567
}
568568
}
569569

570-
getNodes(treeElement).forEach((node, index) => {
570+
const nodes = getNodes(treeElement);
571+
expect(nodes.length).toBe(expectedTree.length);
572+
573+
nodes.forEach((node, index) => {
571574
const expected = expectedTree ?
572575
expectedTree[index] :
573576
null;

0 commit comments

Comments
 (0)