From c5dfbd791331e3d597dcc65822876fb51975eeb4 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Wed, 10 Jan 2024 22:52:41 -0800 Subject: [PATCH] fix test --- examples/shorthand.rs | 3 +++ packages/cli/src/cli/autoformat.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/shorthand.rs b/examples/shorthand.rs index 44a1650e6..4a3e9b416 100644 --- a/examples/shorthand.rs +++ b/examples/shorthand.rs @@ -8,8 +8,11 @@ fn app(cx: Scope) -> Element { let a = 123; let b = 456; let c = 789; + let class = "class"; + let id = "id"; render! { + div { class, id } Component { a, b, c } Component { a, ..ComponentProps { a: 1, b: 2, c: 3 } } } diff --git a/packages/cli/src/cli/autoformat.rs b/packages/cli/src/cli/autoformat.rs index 7909cdb88..d1702ebf2 100644 --- a/packages/cli/src/cli/autoformat.rs +++ b/packages/cli/src/cli/autoformat.rs @@ -267,10 +267,10 @@ async fn test_auto_fmt() { let test_rsx = r#" // - rsx! { + div {} - } + // //