testing.mjs 593 B

123456789101112131415161718
  1. import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
  2. /** Harness for interacting with a `mat-divider`. */
  3. class MatDividerHarness extends ComponentHarness {
  4. static hostSelector = '.mat-divider';
  5. static with(options = {}) {
  6. return new HarnessPredicate(MatDividerHarness, options);
  7. }
  8. async getOrientation() {
  9. return (await this.host()).getAttribute('aria-orientation');
  10. }
  11. async isInset() {
  12. return (await this.host()).hasClass('mat-divider-inset');
  13. }
  14. }
  15. export { MatDividerHarness };
  16. //# sourceMappingURL=testing.mjs.map