diff options
author | 2024-04-23 02:14:09 +0800 | |
---|---|---|
committer | 2024-04-22 14:14:09 -0400 | |
commit | 5cb7d2aed8105631389b3ef6ee6c70d1d89e3469 (patch) | |
tree | 519dc5e1fe33760e053e4e66ea28b6019c03caf0 | |
parent | b0de82b1e9092746673c4c49f160e574afc5c4b3 (diff) | |
download | astro-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.
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" /> |