@angular/material
Version:
Angular Material
19 lines (16 loc) • 615 B
JavaScript
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
/** Harness for interacting with a `mat-divider`. */
class MatDividerHarness extends ComponentHarness {
static hostSelector = '.mat-divider';
static with(options = {}) {
return new HarnessPredicate(MatDividerHarness, options);
}
async getOrientation() {
return (await this.host()).getAttribute('aria-orientation');
}
async isInset() {
return (await this.host()).hasClass('mat-divider-inset');
}
}
export { MatDividerHarness as M };
//# sourceMappingURL=divider-harness-8099453f.mjs.map