refactor(core): move misc methods that only have one version from DomAdapter (#32408)
PR Close #32408
This commit is contained in:

committed by
Miško Hevery

parent
c207ad80fd
commit
1a7c79746d
@ -3743,7 +3743,7 @@ const DEFAULT_COMPONENT_ID = '1';
|
||||
})();
|
||||
|
||||
function assertHasParent(element: any, yes: boolean) {
|
||||
const parent = getDOM().parentElement(element);
|
||||
const parent = element.parentNode;
|
||||
if (yes) {
|
||||
expect(parent).toBeTruthy();
|
||||
} else {
|
||||
|
@ -878,7 +878,7 @@ class TestCmptWithPropBindings {
|
||||
fixture = TestBed.createComponent(SimpleContentComp);
|
||||
fixture.detectChanges();
|
||||
|
||||
const parent = getDOM().parentElement(fixture.nativeElement) !;
|
||||
const parent = fixture.nativeElement.parentElement;
|
||||
const content = fixture.componentInstance.content.nativeElement;
|
||||
|
||||
// Move the content element outside the component
|
||||
|
Reference in New Issue
Block a user