Skip to content

Commit

Permalink
Figure out if tests are interferring with each other.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Sep 11, 2024
1 parent aff96f2 commit 4e01d07
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/yew-router/tests/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ async fn link_in_browser_router() {
let _ = gloo::utils::body().append_child(&div);
yew::Renderer::<RootForBrowserRouter>::with_root(div).render();

for _ in 0..2 {
sleep(Duration::ZERO).await;
}
sleep(Duration::ZERO).await;

assert_eq!("/posts", link_href("#browser-router ul > li.posts > a"));
assert_eq!(
Expand All @@ -117,6 +115,7 @@ async fn link_in_browser_router() {
);
}

/*
#[function_component(RootForBasename)]
fn root_for_basename() -> Html {
html! {
Expand All @@ -133,9 +132,7 @@ async fn link_with_basename() {
let _ = gloo::utils::body().append_child(&div);
yew::Renderer::<RootForBasename>::with_root(div).render();
for _ in 0..2 {
sleep(Duration::ZERO).await;
}
sleep(Duration::ZERO).await;
assert_eq!("/base/posts", link_href("#with-basename ul > li.posts > a"));
assert_eq!(
Expand All @@ -156,6 +153,7 @@ async fn link_with_basename() {
link_href("#with-basename ul > li.search-q-lang > a")
);
}
*/

#[function_component(RootForHashRouter)]
fn root_for_hash_router() -> Html {
Expand Down

0 comments on commit 4e01d07

Please sign in to comment.