{{ foo }} {{ hello }} {{ bar }}
+ `)
+ expect(content).not.toMatch(`const { foo } =`)
+ expect(content).toMatch(`const bar = 'fish', hello = 'world'`)
+ expect(content).toMatch(`_toDisplayString(hello)`)
+ expect(content).toMatch(`_toDisplayString(bar)`)
+ expect(content).toMatch(`_toDisplayString(__props.foo)`)
+ assertCode(content)
+ expect(bindings).toStrictEqual({
+ foo: BindingTypes.PROPS,
+ bar: BindingTypes.SETUP_CONST,
+ hello: BindingTypes.SETUP_CONST
+ })
+ })
+
test('nested scope', () => {
const { content, bindings } = compile(`