Skip to content

Commit dbf0845

Browse files
committed
refactor(tree/testing): change MatNodeHarness to extend ContentContainerComponentHarness
1 parent 9717ee1 commit dbf0845

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material/tree/testing/node-harness.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
*/
88

99
import {
10-
ComponentHarness,
1110
ComponentHarnessConstructor,
12-
HarnessPredicate
11+
ContentContainerComponentHarness,
12+
HarnessPredicate,
1313
} from '@angular/cdk/testing';
1414
import {TreeNodeHarnessFilters} from './tree-harness-filters';
1515
import {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion';
1616

1717
/** Harness for interacting with a standard Angular Material tree node. */
18-
export class MatTreeNodeHarness extends ComponentHarness {
18+
export class MatTreeNodeHarness extends ContentContainerComponentHarness<string> {
1919
/** The selector of the host element of a `MatTreeNode` instance. */
2020
static hostSelector = '.mat-tree-node, .mat-nested-tree-node';
2121

0 commit comments

Comments
 (0)