MCPcopy Create free account
hub / github.com/angular/components / with

Method with

src/material/chips/testing/chip-set-harness.ts:26–31  ·  view source on GitHub ↗

* 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 = {},
  )

Source from the content-addressed store, hash-verified

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[]> {

Callers 1

getChipsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected