Collapses the node if it is expanded. Only works when node is not disabled.
()
| 72 | |
| 73 | /** Collapses the node if it is expanded. Only works when node is not disabled. */ |
| 74 | async collapse(): Promise<void> { |
| 75 | if (await this.isExpanded()) { |
| 76 | await this.toggle(); |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | function getNodePredicate<T extends MatTreeNodeHarness>( |
nothing calls this directly
no test coverage detected