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

Method with

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

* Gets a `HarnessPredicate` that can be used to search for a chip edit with specific * attributes. * @param options Options for filtering which input instances are considered a match. * @return a `HarnessPredicate` configured with the given options.

(
    this: ComponentHarnessConstructor<T>,
    options: ChipEditHarnessFilters = {},
  )

Source from the content-addressed store, hash-verified

24 * @return a `HarnessPredicate` configured with the given options.
25 */
26 static with<T extends MatChipEditHarness>(
27 this: ComponentHarnessConstructor<T>,
28 options: ChipEditHarnessFilters = {},
29 ): HarnessPredicate<T> {
30 return new HarnessPredicate(this, options);
31 }
32
33 /** Clicks the edit button. */
34 async click(): Promise<void> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected