浏览代码

fix: dont panic in panic test

Jonathan Kelley 2 年之前
父节点
当前提交
18157eeed1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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}" }