Skip to content

Commit 9d1d5e6

Browse files
committed
add jsdoc
1 parent a724e5c commit 9d1d5e6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/cdk/testing/text-filtering.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Gets text of element excluding certain selectors within the element.
3+
* @param element Element to get text from,
4+
* @param excludeSelector Selector identifying which elements to exclude,
5+
*/
16
export function getTextWithExcludedElements(element: Element, excludeSelector: string) {
27
const clone = element.cloneNode(true) as Element;
38
const exclusions = clone.querySelectorAll(excludeSelector);

tools/public_api_guard/cdk/testing.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ export interface TestElement {
131131
sendKeys(...keys: (string | TestKey)[]): Promise<void>;
132132
sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
133133
setInputValue?(value: string): Promise<void>;
134-
text(options?: {
135-
exclude?: string;
136-
}): Promise<string>;
134+
text(options?: TextOptions): Promise<string>;
137135
}
138136

139137
export declare enum TestKey {

0 commit comments

Comments
 (0)