Skip to content

Commit c0e9e45

Browse files
karaJoostK
authored andcommitted
fix: move detectChanges call in tree spec to include trackBy (angular#15414)
1 parent 8938435 commit c0e9e45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cdk/tree/tree.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,8 @@ describe('CdkTree', () => {
782782
fixture = TestBed.createComponent(NestedCdkTreeAppWithTrackBy);
783783
component = fixture.componentInstance;
784784
component.trackByStrategy = trackByStrategy;
785+
fixture.detectChanges();
786+
785787
dataSource = component.dataSource as FakeDataSource;
786788
fixture.detectChanges();
787789

0 commit comments

Comments
 (0)