refactor(core): remove testing-only childNodes() and firstChild() fns from DomAdapters (#32291)
PR Close #32291
This commit is contained in:

committed by
Miško Hevery

parent
30dabdf8fc
commit
c0680602f9
@ -34,8 +34,8 @@ class SomeComponent {
|
||||
|
||||
function createRootEl(selector = 'bootstrap-app') {
|
||||
const doc = TestBed.get(DOCUMENT);
|
||||
const rootEl = <HTMLElement>getDOM().firstChild(
|
||||
getContent(createTemplate(`<${selector}></${selector}>`)));
|
||||
const rootEl =
|
||||
<HTMLElement>getContent(createTemplate(`<${selector}></${selector}>`)).firstChild;
|
||||
const oldRoots = getDOM().querySelectorAll(doc, selector);
|
||||
for (let i = 0; i < oldRoots.length; i++) {
|
||||
getDOM().remove(oldRoots[i]);
|
||||
|
Reference in New Issue
Block a user