diff options
author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-09-10 13:54:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 12:54:43 +0200 |
commit | 3f6afd19472c7a13f21b1083d80a563d9359a7ab (patch) | |
tree | 4dbc5f9deff1ca11c476fbaa9fe11a0853c35c45 /tests/specs | |
parent | c4d088863e93b70fa0729f326ad14376ca90b0a6 (diff) |
fix: update malva in deno to support astro css comments (#25553)
This PR addresses issue #25534
**Code Changes**
- Updated malva version to the latest in cli/Cargo.toml.
- Updated LanguageOptions to match new Malva config.
- Added test case same as the issue to assure changes success.
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/fmt/astro_file_with_css_comment/__test__.jsonc | 5 | ||||
-rw-r--r-- | tests/specs/fmt/astro_file_with_css_comment/fmt.out | 2 | ||||
-rw-r--r-- | tests/specs/fmt/astro_file_with_css_comment/main.astro | 8 |
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/fmt/astro_file_with_css_comment/__test__.jsonc b/tests/specs/fmt/astro_file_with_css_comment/__test__.jsonc new file mode 100644 index 000000000..295d2c2c3 --- /dev/null +++ b/tests/specs/fmt/astro_file_with_css_comment/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "tempDir": true, + "args": "fmt --unstable-component", + "output": "fmt.out" +} diff --git a/tests/specs/fmt/astro_file_with_css_comment/fmt.out b/tests/specs/fmt/astro_file_with_css_comment/fmt.out new file mode 100644 index 000000000..f6d1be92d --- /dev/null +++ b/tests/specs/fmt/astro_file_with_css_comment/fmt.out @@ -0,0 +1,2 @@ +[WILDCARD]main.astro +Checked 1 file diff --git a/tests/specs/fmt/astro_file_with_css_comment/main.astro b/tests/specs/fmt/astro_file_with_css_comment/main.astro new file mode 100644 index 000000000..1fa1a5c09 --- /dev/null +++ b/tests/specs/fmt/astro_file_with_css_comment/main.astro @@ -0,0 +1,8 @@ +<style> + /* + CSS + */ + body { + font-family: 'Arial', sans-serif; + } +</style>
\ No newline at end of file |