Skip to content

Commit

Permalink
test(material/legacy-chips): fix selectable chips tests (#25790)
Browse files Browse the repository at this point in the history
Fixes that we had some tests where we were testing user selection of a chip, but the chip wasn't set as selectable.
  • Loading branch information
crisbeto committed Oct 11, 2022
1 parent a0ec4be commit 87eb708
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/material/legacy-chips/chip-list.spec.ts
Expand Up @@ -792,6 +792,7 @@ describe('MatChipList', () => {
});

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

Expand Down Expand Up @@ -995,6 +996,7 @@ describe('MatChipList', () => {
});

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

Expand Down

0 comments on commit 87eb708

Please sign in to comment.