Skip to content

Commit 2d8b004

Browse files
committed
build: fix compilation error in dialog harness
Fixes an error due to a couple of PRs getting merged in out of sequence.
1 parent f5e087b commit 2d8b004

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/material-experimental/mdc-dialog/harness/dialog-harness-filters.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export type DialogHarnessFilters = {
10-
id?: string;
11-
};
9+
import {BaseHarnessFilters} from '@angular/cdk-experimental/testing';
10+
11+
export interface DialogHarnessFilters extends BaseHarnessFilters {}

src/material-experimental/mdc-dialog/harness/dialog-harness.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export class MatDialogHarness extends ComponentHarness {
2727
* @return a `HarnessPredicate` configured with the given options.
2828
*/
2929
static with(options: DialogHarnessFilters = {}): HarnessPredicate<MatDialogHarness> {
30-
return new HarnessPredicate(MatDialogHarness)
31-
.addOption('id', options.id, async (harness, id) => (await harness.getId()) === id);
30+
return new HarnessPredicate(MatDialogHarness, options);
3231
}
3332

3433
/** Gets the id of the dialog. */

0 commit comments

Comments
 (0)