Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
access the childNode from the projection domNode
Browse files Browse the repository at this point in the history
  • Loading branch information
agubler committed Nov 2, 2017
1 parent 8342729 commit 3a9fafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/vdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2227,7 +2227,7 @@ describe('vdom', () => {
}
const widget = new Foo();
const projection = dom.merge(root, widget.__render__() as HNode, widget);
const projectionRoot = projection.domNode as Element;
const projectionRoot = projection.domNode.childNodes[0] as Element;
assert.lengthOf(projectionRoot.childNodes, 1, 'should have 1 child');

firstRender = false;
Expand Down

0 comments on commit 3a9fafa

Please sign in to comment.