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

Method with

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

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

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

Source from the content-addressed store, hash-verified

30 * @return a `HarnessPredicate` configured with the given options.
31 */
32 static with<T extends MatErrorHarness>(
33 this: ComponentHarnessConstructor<T>,
34 options: ErrorHarnessFilters = {},
35 ): HarnessPredicate<T> {
36 return MatErrorHarness._getErrorPredicate(this, options);
37 }
38
39 protected static _getErrorPredicate<T extends MatErrorHarness>(
40 type: ComponentHarnessConstructor<T>,

Callers 1

Calls 1

_getErrorPredicateMethod · 0.80

Tested by

no test coverage detected