Skip to content

Commit 5df0916

Browse files
LayZeeDKmmalerba
authored andcommitted
docs(cdk): correct code sample for test harnesses (#18153)
1 parent dbdc1a8 commit 5df0916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/testing/test-harnesses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class MyMenuHarness extends ComponentHarness {
460460

461461
/** Gets a list of items in the menu, optionally filtered based on the given criteria. */
462462
async getItems(filters: MyMenuItemHarnessFilters = {}): Promise<MyMenuItemHarness[]> {
463-
const getFilteredItems = this.locatorFor(MyMenuItemHarness.with(filters));
463+
const getFilteredItems = this.locatorForAll(MyMenuItemHarness.with(filters));
464464
return getFilteredItems();
465465
}
466466

0 commit comments

Comments
 (0)