Skip to content

Commit

Permalink
Illustrate bug in tree test
Browse files Browse the repository at this point in the history
  • Loading branch information
martiansnoop committed Dec 5, 2019
1 parent 04cc369 commit 312471c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/material/tree/tree.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,10 @@ function expectFlatTreeToMatch(treeElement: Element, expectedPaddingIndent: numb
}
}

getNodes(treeElement).forEach((node, index) => {
const nodes = getNodes(treeElement);
expect(nodes.length).toBe(expectedTree.length);

nodes.forEach((node, index) => {
const expected = expectedTree ?
expectedTree[index] :
null;
Expand Down

0 comments on commit 312471c

Please sign in to comment.