diff --git a/packages/astro/test/astro-expr.test.js b/packages/astro/test/astro-expr.test.js index 505bf2845..c474c1d3d 100644 --- a/packages/astro/test/astro-expr.test.js +++ b/packages/astro/test/astro-expr.test.js @@ -82,4 +82,11 @@ Expressions('Does not render falsy values using &&', async ({ runtime }) => { assert.equal($('#undefined').length, 0, `Expected {undefined && } not to render`); }); +Expressions.only('Followed by an element', async ({ runtime }) => { + const result = await runtime.load('/before-el'); + if (result.error) throw new Error(result.error); + + console.log(result.contents); +}); + Expressions.run(); diff --git a/packages/astro/test/fixtures/astro-expr/src/pages/before-el.astro b/packages/astro/test/fixtures/astro-expr/src/pages/before-el.astro new file mode 100644 index 000000000..e9f70f587 --- /dev/null +++ b/packages/astro/test/fixtures/astro-expr/src/pages/before-el.astro @@ -0,0 +1,15 @@ +--- +let title = 'My App'; + +let colors = ['red', 'yellow', 'blue']; +--- + + +
+