summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-03-23 20:15:44 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-03-23 20:15:44 -0700
commit195b131f430536a33db244267d35b614bb014d60 (patch)
tree71875329f236481cbe8920010448bc884cc87865 /test
parent5492a2dc4e26a6fbcbb99b24e16045522c8e316a (diff)
downloadastro-195b131f430536a33db244267d35b614bb014d60.tar.gz
astro-195b131f430536a33db244267d35b614bb014d60.tar.zst
astro-195b131f430536a33db244267d35b614bb014d60.zip
add support for frontmatter scripts
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/hmx-basic/astro/pages/index.hmx4
-rw-r--r--test/fixtures/hmx-markdown/astro/pages/index.hmx4
-rw-r--r--test/fixtures/react-component/astro/pages/index.hmx4
3 files changed, 6 insertions, 6 deletions
diff --git a/test/fixtures/hmx-basic/astro/pages/index.hmx b/test/fixtures/hmx-basic/astro/pages/index.hmx
index 19f888e04..d4f6fc5a1 100644
--- a/test/fixtures/hmx-basic/astro/pages/index.hmx
+++ b/test/fixtures/hmx-basic/astro/pages/index.hmx
@@ -1,10 +1,10 @@
-<script astro>
+---
export function setup() {
return {
props: {}
}
}
-</script>
+---
<astro:head>
<!-- Head Stuff -->
diff --git a/test/fixtures/hmx-markdown/astro/pages/index.hmx b/test/fixtures/hmx-markdown/astro/pages/index.hmx
index 19f888e04..d4f6fc5a1 100644
--- a/test/fixtures/hmx-markdown/astro/pages/index.hmx
+++ b/test/fixtures/hmx-markdown/astro/pages/index.hmx
@@ -1,10 +1,10 @@
-<script astro>
+---
export function setup() {
return {
props: {}
}
}
-</script>
+---
<astro:head>
<!-- Head Stuff -->
diff --git a/test/fixtures/react-component/astro/pages/index.hmx b/test/fixtures/react-component/astro/pages/index.hmx
index 8616754ca..5debf6380 100644
--- a/test/fixtures/react-component/astro/pages/index.hmx
+++ b/test/fixtures/react-component/astro/pages/index.hmx
@@ -1,6 +1,6 @@
-<script astro>
+---
import Hello from '../components/Hello.jsx';
-</script>
+---
<astro:head>
<!-- Head Stuff -->