Skip to content

Commit 2c6df82

Browse files
committed
fix rebase issues
1 parent c970cb6 commit 2c6df82

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

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

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

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

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ export class MatInputHarness extends ComponentHarness {
2626
* @return a `HarnessPredicate` configured with the given options.
2727
*/
2828
static with(options: InputHarnessFilters = {}): HarnessPredicate<MatInputHarness> {
29-
// TODO(devversion): "name" and "id" can be removed once components#16848 is merged.
30-
return new HarnessPredicate(MatInputHarness)
31-
.addOption(
32-
'name', options.name, async (harness, name) => (await harness.getName()) === name)
33-
.addOption('id', options.id, async (harness, id) => (await harness.getId()) === id)
29+
return new HarnessPredicate(MatInputHarness, options)
3430
.addOption(
3531
'value', options.value, async (harness, value) => (await harness.getValue()) === value);
3632
}

0 commit comments

Comments
 (0)