* Gets a `HarnessPredicate` that can be used to search for a chip set with specific attributes. * @param options Options for filtering which chip set instances are considered a match. * @return a `HarnessPredicate` configured with the given options.
(
this: ComponentHarnessConstructor<T>,
options: ChipSetHarnessFilters = {},
)
| 24 | * @return a `HarnessPredicate` configured with the given options. |
| 25 | */ |
| 26 | static with<T extends MatChipSetHarness>( |
| 27 | this: ComponentHarnessConstructor<T>, |
| 28 | options: ChipSetHarnessFilters = {}, |
| 29 | ): HarnessPredicate<T> { |
| 30 | return new HarnessPredicate(this, options); |
| 31 | } |
| 32 | |
| 33 | /** Gets promise of the harnesses for the chips. */ |
| 34 | async getChips(filter: ChipHarnessFilters = {}): Promise<MatChipHarness[]> { |