From d8edd9659e135b7e167120c2aa5255def427e8c2 Mon Sep 17 00:00:00 2001 From: Kaede Hoshikawa Date: Sun, 24 Apr 2022 17:30:17 +0900 Subject: [PATCH] Add comment if assertion fails. --- packages/yew/tests/hydration.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/yew/tests/hydration.rs b/packages/yew/tests/hydration.rs index 7630fea2041..8b06f5ba9b8 100644 --- a/packages/yew/tests/hydration.rs +++ b/packages/yew/tests/hydration.rs @@ -17,6 +17,9 @@ use yew::{Renderer, ServerRenderer}; wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); +// If any of the assertions fail due to a modification to hydration logic, cargo will suggest the +// expected result and you can copy it into the test to fix it. + #[wasm_bindgen_test] async fn hydration_works() { #[function_component]