summaryrefslogtreecommitdiff
path: root/test/astro-expr.test.js
diff options
context:
space:
mode:
authorGravatar Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> 2021-04-22 12:10:06 -0700
committerGravatar GitHub <noreply@github.com> 2021-04-22 15:10:06 -0400
commit5eb232501f8f02236e52cf945b7fa3ce5a2ec260 (patch)
treea2abbdec0c191d8ded6534b0e8a8cb05d4db5ec4 /test/astro-expr.test.js
parentf5384b139d7bb2b8a748dd4a344c1e91d850c76e (diff)
downloadastro-5eb232501f8f02236e52cf945b7fa3ce5a2ec260.tar.gz
astro-5eb232501f8f02236e52cf945b7fa3ce5a2ec260.tar.zst
astro-5eb232501f8f02236e52cf945b7fa3ce5a2ec260.zip
Allow multiple JSX children appear in Mustache tag (#125)
* fix(www): link styles (#100) Co-authored-by: Nate Moore <nate@skypack.dev> * Add `assets/` (#102) * chore: add assets * docs: update readme Co-authored-by: Nate Moore <nate@skypack.dev> * docs: fix readme * docs: fix readme * chore: remove github banner * Allow multiple JSX in mustache * Manually discard package-lock update (due to local use of npm v7) * Tidy up * Revert mode ts-ignore Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Nate Moore <nate@skypack.dev>
Diffstat (limited to 'test/astro-expr.test.js')
-rw-r--r--test/astro-expr.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/astro-expr.test.js b/test/astro-expr.test.js
index ea461af4b..c3c985712 100644
--- a/test/astro-expr.test.js
+++ b/test/astro-expr.test.js
@@ -53,4 +53,11 @@ Expressions('Ignores characters inside of multiline comments', async ({ runtime
}
});
+Expressions('Allows multiple JSX children in mustache', async ({ runtime }) => {
+ const result = await runtime.load('/multiple-children');
+ assert.equal(result.statusCode, 200);
+
+ assert.ok(result.contents.includes('#f') && !result.contents.includes('#t'));
+});
+
Expressions.run();