diff --git a/src/material/chips/chip-list.spec.ts b/src/material/chips/chip-list.spec.ts index dfe1fba873ec..4118f35be92b 100644 --- a/src/material/chips/chip-list.spec.ts +++ b/src/material/chips/chip-list.spec.ts @@ -753,7 +753,7 @@ describe('MatChipList', () => { tick(); falsyFixture.detectChanges(); - const chipListElement = falsyFixture.debugElement.query(By.directive(MatLegacyChipList))!; + const chipListElement = falsyFixture.debugElement.query(By.directive(MatChipList))!; const currentChips = chipListElement.componentInstance.chips; const currentNativeChips = falsyFixture.debugElement .queryAll(By.css('mat-chip')) @@ -1917,6 +1917,6 @@ class FalsyBasicChipList { tabIndexOverride: number; selectable: boolean = false; - @ViewChild(MatLegacyChipList) chipList: MatLegacyChipList; - @ViewChildren(MatLegacyChip) chips: QueryList; + @ViewChild(MatChipList) chipList: MatChipList; + @ViewChildren(MatChip) chips: QueryList; }