(
public harnessType: ComponentHarnessConstructor<T>,
options: BaseHarnessFilters,
)
| 606 | private _ancestor: string; |
| 607 | |
| 608 | constructor( |
| 609 | public harnessType: ComponentHarnessConstructor<T>, |
| 610 | options: BaseHarnessFilters, |
| 611 | ) { |
| 612 | this._ancestor = options.ancestor || ''; |
| 613 | if (this._ancestor) { |
| 614 | this._descriptions.push(`has ancestor matching selector "${this._ancestor}"`); |
| 615 | } |
| 616 | const selector = options.selector; |
| 617 | if (selector !== undefined) { |
| 618 | this.add(`host matches selector "${selector}"`, async item => { |
| 619 | return (await item.host()).matchesSelector(selector); |
| 620 | }); |
| 621 | } |
| 622 | } |
| 623 | |
| 624 | /** |
| 625 | * Checks if the specified nullable string value matches the given pattern. |
nothing calls this directly
no test coverage detected