From 29b2d3024a323b9e4494b4c93c9625d7f5674e7e Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 1 Oct 2024 20:05:22 -0400 Subject: [PATCH] fix: update import of `tick` in test examples --- examples/counter/tests/web.rs | 2 +- examples/counter_without_macros/tests/web.rs | 2 +- examples/counters/tests/web.rs | 2 +- examples/directives/tests/web.rs | 2 +- examples/js-framework-benchmark/tests/web.rs | 2 +- examples/portal/tests/web.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/counter/tests/web.rs b/examples/counter/tests/web.rs index a4f92da5a..ada705e6e 100644 --- a/examples/counter/tests/web.rs +++ b/examples/counter/tests/web.rs @@ -1,7 +1,7 @@ use counter::*; use leptos::mount::mount_to; use leptos::prelude::*; -use leptos::spawn::tick; +use leptos::task::tick; use wasm_bindgen::JsCast; use wasm_bindgen_test::*; diff --git a/examples/counter_without_macros/tests/web.rs b/examples/counter_without_macros/tests/web.rs index 59f6c9f07..bbcfd424e 100644 --- a/examples/counter_without_macros/tests/web.rs +++ b/examples/counter_without_macros/tests/web.rs @@ -1,5 +1,5 @@ use counter_without_macros::counter; -use leptos::{prelude::*, spawn::tick}; +use leptos::{prelude::*, task::tick}; use pretty_assertions::assert_eq; use wasm_bindgen::JsCast; use wasm_bindgen_test::*; diff --git a/examples/counters/tests/web.rs b/examples/counters/tests/web.rs index debc3690c..dafb9e498 100644 --- a/examples/counters/tests/web.rs +++ b/examples/counters/tests/web.rs @@ -4,7 +4,7 @@ use wasm_bindgen_test::*; wasm_bindgen_test_configure!(run_in_browser); use counters::Counters; use leptos::prelude::*; -use leptos::spawn::tick; +use leptos::task::tick; use web_sys::HtmlElement; #[wasm_bindgen_test] diff --git a/examples/directives/tests/web.rs b/examples/directives/tests/web.rs index 5bbc17309..562542dc3 100644 --- a/examples/directives/tests/web.rs +++ b/examples/directives/tests/web.rs @@ -1,5 +1,5 @@ use directives::App; -use leptos::{prelude::*, spawn::tick}; +use leptos::{prelude::*, task::tick}; use wasm_bindgen::JsCast; use wasm_bindgen_test::*; use web_sys::HtmlElement; diff --git a/examples/js-framework-benchmark/tests/web.rs b/examples/js-framework-benchmark/tests/web.rs index 5846b05bd..7af0fee26 100644 --- a/examples/js-framework-benchmark/tests/web.rs +++ b/examples/js-framework-benchmark/tests/web.rs @@ -1,5 +1,5 @@ use js_framework_benchmark_leptos::*; -use leptos::{prelude::*, spawn::tick}; +use leptos::{prelude::*, task::tick}; use wasm_bindgen::JsCast; use wasm_bindgen_test::*; diff --git a/examples/portal/tests/web.rs b/examples/portal/tests/web.rs index 5498e0a76..5b312e77b 100644 --- a/examples/portal/tests/web.rs +++ b/examples/portal/tests/web.rs @@ -3,7 +3,7 @@ use wasm_bindgen::JsCast; use wasm_bindgen_test::*; wasm_bindgen_test_configure!(run_in_browser); -use leptos::spawn::tick; +use leptos::task::tick; use leptos::{leptos_dom::helpers::document, mount::mount_to}; use web_sys::HtmlButtonElement;