diff --git a/examples/directives/Cargo.toml b/examples/directives/Cargo.toml
index 31a497569..6d7967fba 100644
--- a/examples/directives/Cargo.toml
+++ b/examples/directives/Cargo.toml
@@ -13,5 +13,4 @@ web-sys = { version = "0.3", features = ["Clipboard", "Navigator"] }
[dev-dependencies]
wasm-bindgen-test = "0.3.0"
wasm-bindgen = "0.2"
-web-sys = "0.3"
-gloo-timers = { version = "0.3", features = ["futures"] }
+web-sys = { version = "0.3", features = ["NodeList"] }
diff --git a/examples/directives/src/lib.rs b/examples/directives/src/lib.rs
index cfda5e35c..737e37f4f 100644
--- a/examples/directives/src/lib.rs
+++ b/examples/directives/src/lib.rs
@@ -85,7 +85,6 @@ pub fn App() -> impl IntoView {
"Copy \"" {data} "\" to clipboard"
// automatically applies the directive to every root element in `SomeComponent`
"click me"
// no value will default to `().into()` // `5.into()` automatically called diff --git a/examples/directives/tests/web.rs b/examples/directives/tests/web.rs index e41b317d3..5bbc17309 100644 --- a/examples/directives/tests/web.rs +++ b/examples/directives/tests/web.rs @@ -1,19 +1,16 @@ -use gloo_timers::future::sleep; -use std::time::Duration; +use directives::App; +use leptos::{prelude::*, spawn::tick}; use wasm_bindgen::JsCast; use wasm_bindgen_test::*; - -wasm_bindgen_test_configure!(run_in_browser); -use directives::App; -use leptos::prelude::*; use web_sys::HtmlElement; +wasm_bindgen_test_configure!(run_in_browser); #[wasm_bindgen_test] async fn test_directives() { - mount_to_body(|| view! {