summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar virchau13 <virchau13@hexular.net> 2024-04-23 02:14:09 +0800
committerGravatar GitHub <noreply@github.com> 2024-04-22 14:14:09 -0400
commit5cb7d2aed8105631389b3ef6ee6c70d1d89e3469 (patch)
tree519dc5e1fe33760e053e4e66ea28b6019c03caf0
parentb0de82b1e9092746673c4c49f160e574afc5c4b3 (diff)
downloadastro-5cb7d2aed8105631389b3ef6ee6c70d1d89e3469.tar.gz
astro-5cb7d2aed8105631389b3ef6ee6c70d1d89e3469.tar.zst
astro-5cb7d2aed8105631389b3ef6ee6c70d1d89e3469.zip
fix: resolve syntax errors in fixtures (#10828)
I parsed every `.astro` file in the Astro repository (to check if tree-sitter-astro had any bugs), and found these three syntax errors that don't seem intentional.
-rw-r--r--packages/astro/e2e/fixtures/view-transitions/src/pages/404.astro1
-rw-r--r--packages/astro/test/fixtures/astro-basic/src/pages/fileurl.astro2
-rw-r--r--packages/astro/test/fixtures/core-image-deletion/src/pages/index.astro4
3 files changed, 3 insertions, 4 deletions
diff --git a/packages/astro/e2e/fixtures/view-transitions/src/pages/404.astro b/packages/astro/e2e/fixtures/view-transitions/src/pages/404.astro
index a0622e4a3..725d16b6d 100644
--- a/packages/astro/e2e/fixtures/view-transitions/src/pages/404.astro
+++ b/packages/astro/e2e/fixtures/view-transitions/src/pages/404.astro
@@ -4,4 +4,3 @@ import Layout from '../components/Layout.astro';
<Layout>
<p id="FourOhFour">Page not found</p>
</Layout>
-</script>
diff --git a/packages/astro/test/fixtures/astro-basic/src/pages/fileurl.astro b/packages/astro/test/fixtures/astro-basic/src/pages/fileurl.astro
index e85507941..c49d279e9 100644
--- a/packages/astro/test/fixtures/astro-basic/src/pages/fileurl.astro
+++ b/packages/astro/test/fixtures/astro-basic/src/pages/fileurl.astro
@@ -5,6 +5,6 @@ import {capitalize} from 'file://../strings.js';
<html>
<head><title>Testing</title></head>
<body>
- <h1>{capitalize('works')</h1>
+ <h1>{capitalize('works')}</h1>
</body>
</html>
diff --git a/packages/astro/test/fixtures/core-image-deletion/src/pages/index.astro b/packages/astro/test/fixtures/core-image-deletion/src/pages/index.astro
index a7aa45081..582951a60 100644
--- a/packages/astro/test/fixtures/core-image-deletion/src/pages/index.astro
+++ b/packages/astro/test/fixtures/core-image-deletion/src/pages/index.astro
@@ -8,8 +8,8 @@ import twoFromURL_URL from "../assets/url.jpg?url";
<Image src={onlyOne} alt="Only one of me exists at the end of the build" />
-<Image src={twoOfUs} alt="Two of us will exist, because I'm also used as a normal image" /></Image>
+<Image src={twoOfUs} alt="Two of us will exist, because I'm also used as a normal image" />
<img src={twoOfUs.src} alt="Two of us will exist, because I'm also used as a normal image" />
-<Image src={twoFromURL} alt="Two of us will exist, because I'm also imported using ?url" /></Image>
+<Image src={twoFromURL} alt="Two of us will exist, because I'm also imported using ?url" />
<img src={twoFromURL_URL} alt="Two of us will exist, because I'm also used as a normal image" />