})
})
+ test('empty interpolation', () => {
+ const node = parseWithExpressionTransform(`{{}}`) as InterpolationNode
+ const node2 = parseWithExpressionTransform(`{{ }}`) as InterpolationNode
+ const node3 = parseWithExpressionTransform(
+ `<div>{{ }}</div>`
+ ) as ElementNode
+
+ const objectToBeMatched = {
+ type: NodeTypes.SIMPLE_EXPRESSION,
+ content: ``
+ }
+ expect(node.content).toMatchObject(objectToBeMatched)
+ expect(node2.content).toMatchObject(objectToBeMatched)
+ expect((node3.children[0] as InterpolationNode).content).toMatchObject(
+ objectToBeMatched
+ )
+ })
+
test('interpolation (children)', () => {
const el = parseWithExpressionTransform(
`<div>{{ foo }}</div>`