Skip to content

Commit 87eb708

Browse files
authored
test(material/legacy-chips): fix selectable chips tests (#25790)
Fixes that we had some tests where we were testing user selection of a chip, but the chip wasn't set as selectable.
1 parent a0ec4be commit 87eb708

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/material/legacy-chips/chip-list.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,7 @@ describe('MatChipList', () => {
792792
});
793793

794794
it('should take an initial view value with reactive forms', () => {
795+
fixture.componentInstance.selectable = true;
795796
fixture.componentInstance.control = new FormControl('pizza-1');
796797
fixture.detectChanges();
797798

@@ -995,6 +996,7 @@ describe('MatChipList', () => {
995996
});
996997

997998
it('should take an initial view value with reactive forms', () => {
999+
fixture.componentInstance.selectable = true;
9981000
fixture.componentInstance.control = new FormControl(['pizza-1']);
9991001
fixture.detectChanges();
10001002

0 commit comments

Comments
 (0)