Skip to content

Commit 0e4340f

Browse files
committed
fix parent element
1 parent ca6c094 commit 0e4340f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@glimmer-workspace/integration-tests/test/debug-render-tree-test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class DebugRenderTreeTest extends RenderTest {
283283
args: { positional: [this.element.firstChild], named: {} },
284284
instance: (instance: GlimmerishComponent) => instance === null,
285285
template: null,
286-
bounds: this.nodeBounds(this.element.firstChild),
286+
bounds: this.nodeBounds(this.element.firstChild!.firstChild, this.element),
287287
children: [
288288
{
289289
type: 'component',
@@ -489,12 +489,12 @@ class DebugRenderTreeTest extends RenderTest {
489489
assert.deepEqual(this.delegate.getCapturedRenderTree(), [], 'there was no output');
490490
}
491491

492-
nodeBounds(_node: SimpleNode | null): CapturedBounds {
492+
nodeBounds(_node: SimpleNode | null, parent?: SimpleNode): CapturedBounds {
493493
let node = expect(_node, 'BUG: Expected node');
494494

495495
return {
496496
parentElement: expect(
497-
node.parentNode,
497+
parent || node.parentNode,
498498
'BUG: detached node'
499499
) as unknown as SimpleNode as SimpleElement,
500500
firstNode: node as unknown as SimpleNode,

0 commit comments

Comments
 (0)