From 3f6afd19472c7a13f21b1083d80a563d9359a7ab Mon Sep 17 00:00:00 2001 From: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:54:43 +0300 Subject: 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. --- tests/specs/fmt/astro_file_with_css_comment/__test__.jsonc | 5 +++++ tests/specs/fmt/astro_file_with_css_comment/fmt.out | 2 ++ tests/specs/fmt/astro_file_with_css_comment/main.astro | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 tests/specs/fmt/astro_file_with_css_comment/__test__.jsonc create mode 100644 tests/specs/fmt/astro_file_with_css_comment/fmt.out create mode 100644 tests/specs/fmt/astro_file_with_css_comment/main.astro (limited to 'tests/specs') 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 @@ + \ No newline at end of file -- cgit v1.2.3