chore(test): migrate remaining core tests to testcomponentbuilder
Also add a small utility function to debug element to get an array of native elements, which works smoothly with the toHaveText matcher.
This commit is contained in:
@ -145,6 +145,10 @@ export function inspectElement(elementRef: ElementRef): DebugElement {
|
||||
return DebugElement.create(elementRef);
|
||||
}
|
||||
|
||||
export function asNativeElements(arr: List<DebugElement>): List<any> {
|
||||
return arr.map((debugEl) => debugEl.nativeElement);
|
||||
}
|
||||
|
||||
/**
|
||||
* @exportedAs angular2/test
|
||||
*/
|
||||
|
Reference in New Issue
Block a user