Browse Source

fix: dont panic in panic test

Jonathan Kelley 2 năm trước cách đây
mục cha
commit
18157eeed1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/core/tests/bubble_error.rs

+ 1 - 1
packages/core/tests/bubble_error.rs

@@ -9,7 +9,7 @@ fn app(cx: Scope) -> Element {
         _ => unreachable!(),
     };
 
-    let value = raw.parse::<f32>().unwrap();
+    let value = raw.parse::<f32>().unwrap_or(123.123);
 
     cx.render(rsx! {
         div { "hello {value}" }