From 87eb708d162e89897e66809c371e3a1e079de962 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 11 Oct 2022 14:30:48 +0200 Subject: [PATCH] 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. --- src/material/legacy-chips/chip-list.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/material/legacy-chips/chip-list.spec.ts b/src/material/legacy-chips/chip-list.spec.ts index c6ceb981d70a..b1542837a323 100644 --- a/src/material/legacy-chips/chip-list.spec.ts +++ b/src/material/legacy-chips/chip-list.spec.ts @@ -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(); @@ -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();