Skip to content

Commit 0a6a599

Browse files
committed
fix jsdoc and import
1 parent d5c2dcd commit 0a6a599

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/cdk/testing/protractor/protractor-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
TestKey, TextOptions
1414
} from '@angular/cdk/testing';
1515
import {browser, ElementFinder, Key} from 'protractor';
16-
import {getTextWithExcludedElements} from '@angular/cdk/testing/text-filtering';
16+
import {getTextWithExcludedElements} from '../text-filtering';
1717

1818
/** Maps the `TestKey` constants to Protractor's `Key` constants. */
1919
const keyMap = {

src/cdk/testing/test-element.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ export interface TestElement {
103103

104104
/**
105105
* Gets the text from the element.
106-
* @param options Options that affect what text is included
107-
* exclude: A selector for elements whose text should be excluded from the result.
106+
* @param options Options that affect what text is included.
108107
*/
109108
text(options?: TextOptions): Promise<string>;
110109

@@ -135,5 +134,5 @@ export interface TestElement {
135134

136135
export interface TextOptions {
137136
/** Optional selector for elements to exclude. */
138-
exclude?: string
137+
exclude?: string;
139138
}

src/cdk/testing/testbed/unit-test-element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
triggerFocus,
2323
typeInElement,
2424
} from './fake-events';
25-
import {getTextWithExcludedElements} from '@angular/cdk/testing/text-filtering';
25+
import {getTextWithExcludedElements} from '../text-filtering';
2626

2727
/** Maps `TestKey` constants to the `keyCode` and `key` values used by native browser events. */
2828
const keyMap = {
@@ -132,7 +132,7 @@ export class UnitTestElement implements TestElement {
132132
await this._stabilize();
133133
}
134134

135-
async text(options?:TextOptions): Promise<string> {
135+
async text(options?: TextOptions): Promise<string> {
136136
await this._stabilize();
137137
if (options?.exclude) {
138138
return getTextWithExcludedElements(this.element, options.exclude);

0 commit comments

Comments
 (0)