astro/tools/prettier-plugin-astro/test/fixtures/in/attribute-with-embedded-expr.astro
Caleb Jasik 05d6fc66bb
prettier-plugin: Add a test for JSX embedded in an attribute. This test currently fails. (#508)
* Add a test for JSX embedded in an attribute. This test currently fails.

* Oops forgot the semicolons on the correct output

* Add `--scope prettier-plugin-astro` so that the prettier plugin is tested on default CI

* Replace `assert.equal` with `assert.fixture` to remain inline w/ main

* Update astro-prettier.test.js

* Skip the other failing test.

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-06-25 15:21:03 -07:00

6 lines
No EOL
112 B
Text

---
export let post
export let author
---
<a class="author" href={`/author/${post.author}`}>{author.name}</a>