Skip to content

Commit b8f28cd

Browse files
committed
Experiment part 2.
1 parent 2a8e264 commit b8f28cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/yew-router/tests/link.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::time::Duration;
22

3+
use gloo::console::console_dbg;
34
use serde::{Deserialize, Serialize};
45
use wasm_bindgen_test::{wasm_bindgen_test as test, wasm_bindgen_test_configure};
56
use yew::functional::function_component;
@@ -121,6 +122,7 @@ struct BasenameProps {
121122

122123
#[function_component(RootForBasename)]
123124
fn root_for_basename(props: &BasenameProps) -> Html {
125+
console_dbg!("outer render");
124126
html! {
125127
<BrowserRouter basename={props.basename.clone()}>
126128
<NavigationMenu />
@@ -179,6 +181,8 @@ async fn link_with_basename() {
179181
sleep(Duration::from_millis(100)).await;
180182
}
181183

184+
console_dbg!("before assert");
185+
182186
assert_eq!(
183187
"/bayes/",
184188
gloo::utils::window().location().pathname().unwrap()

0 commit comments

Comments
 (0)