File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/yew-router/tests Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11use std:: time:: Duration ;
22
3+ use gloo:: console:: console_dbg;
34use serde:: { Deserialize , Serialize } ;
45use wasm_bindgen_test:: { wasm_bindgen_test as test, wasm_bindgen_test_configure} ;
56use yew:: functional:: function_component;
@@ -121,6 +122,7 @@ struct BasenameProps {
121122
122123#[ function_component( RootForBasename ) ]
123124fn 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( )
You can’t perform that action at this time.
0 commit comments