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

Method with

src/material/tooltip/testing/tooltip-harness.ts:32–37  ·  view source on GitHub ↗

* Gets a `HarnessPredicate` that can be used to search for a tooltip trigger with specific * attributes. * @param options Options for narrowing the search. * @return a `HarnessPredicate` configured with the given options.

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

Source from the content-addressed store, hash-verified

30 * @return a `HarnessPredicate` configured with the given options.
31 */
32 static with<T extends MatTooltipHarness>(
33 this: ComponentHarnessConstructor<T>,
34 options: TooltipHarnessFilters = {},
35 ): HarnessPredicate<T> {
36 return new HarnessPredicate(this, options);
37 }
38
39 /** Shows the tooltip. */
40 async show(): Promise<void> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected