File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
13
13
TestKey , TextOptions
14
14
} from '@angular/cdk/testing' ;
15
15
import { browser , ElementFinder , Key } from 'protractor' ;
16
- import { getTextWithExcludedElements } from '@angular/cdk/testing /text-filtering' ;
16
+ import { getTextWithExcludedElements } from '.. /text-filtering' ;
17
17
18
18
/** Maps the `TestKey` constants to Protractor's `Key` constants. */
19
19
const keyMap = {
Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ export interface TestElement {
103
103
104
104
/**
105
105
* 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.
108
107
*/
109
108
text ( options ?: TextOptions ) : Promise < string > ;
110
109
@@ -135,5 +134,5 @@ export interface TestElement {
135
134
136
135
export interface TextOptions {
137
136
/** Optional selector for elements to exclude. */
138
- exclude ?: string
137
+ exclude ?: string ;
139
138
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
22
22
triggerFocus ,
23
23
typeInElement ,
24
24
} from './fake-events' ;
25
- import { getTextWithExcludedElements } from '@angular/cdk/testing /text-filtering' ;
25
+ import { getTextWithExcludedElements } from '.. /text-filtering' ;
26
26
27
27
/** Maps `TestKey` constants to the `keyCode` and `key` values used by native browser events. */
28
28
const keyMap = {
@@ -132,7 +132,7 @@ export class UnitTestElement implements TestElement {
132
132
await this . _stabilize ( ) ;
133
133
}
134
134
135
- async text ( options ?:TextOptions ) : Promise < string > {
135
+ async text ( options ?: TextOptions ) : Promise < string > {
136
136
await this . _stabilize ( ) ;
137
137
if ( options ?. exclude ) {
138
138
return getTextWithExcludedElements ( this . element , options . exclude ) ;
You can’t perform that action at this time.
0 commit comments