fix(fragment): properly remove compiler generated fragments

This commit is contained in:
Evan You
2019-12-13 10:31:40 -05:00
parent 6797e35703
commit fa5390fb6f
2 changed files with 50 additions and 50 deletions

View File

@@ -260,5 +260,9 @@ describe('renderer: fragment', () => {
{ type: NodeOpTypes.INSERT, targetNode: { type: 'element' } },
{ type: NodeOpTypes.INSERT, targetNode: { type: 'comment' } }
])
// should properly remove nested fragments
render(null, root)
expect(serializeInner(root)).toBe(``)
})
})