Browse Source

fix: dont panic in panic test

Jonathan Kelley 2 years ago
parent
commit
18157eeed1
1 changed files with 1 additions and 1 deletions
  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}" }