summaryrefslogtreecommitdiff
path: root/test/test-utils.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/test-utils.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/test-utils.js')
-rw-r--r--test/test-utils.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test-utils.js b/test/test-utils.js
index 5d5182636..6a71d834a 100644
--- a/test/test-utils.js
+++ b/test/test-utils.js
@@ -6,13 +6,13 @@ export function doc(html) {
return cheerio.load(html);
}
-/**
- * format the contents of an astro file
- * @param contents {string}
- */
+/**
+ * format the contents of an astro file
+ * @param contents {string}
+ */
export function format(contents) {
return prettier.format(contents, {
- parser: 'astro',
- plugins: [fileURLToPath(new URL('../prettier-plugin-astro', import.meta.url))]
- })
+ parser: 'astro',
+ plugins: [fileURLToPath(new URL('../prettier-plugin-astro', import.meta.url))],
+ });
}