From ef067f18e1aa4d30787ed13a5e25741766dc9224 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sat, 7 Jan 2023 07:36:27 -0500 Subject: [PATCH] Fix router tests when no features enabled --- router/tests/expand_optionals.rs | 2 +- router/tests/join_paths.rs | 2 +- router/tests/matcher.rs | 2 +- router/tests/resolve_path.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/router/tests/expand_optionals.rs b/router/tests/expand_optionals.rs index 95e328d5a..e3b488984 100644 --- a/router/tests/expand_optionals.rs +++ b/router/tests/expand_optionals.rs @@ -1,7 +1,7 @@ use cfg_if::cfg_if; cfg_if! { - if #[cfg(not(any(feature = "csr", feature = "hydrate")))] { + if #[cfg(feature = "ssr")] { use leptos_router::expand_optionals; #[test] diff --git a/router/tests/join_paths.rs b/router/tests/join_paths.rs index dfdae7bb8..a0f682840 100644 --- a/router/tests/join_paths.rs +++ b/router/tests/join_paths.rs @@ -4,7 +4,7 @@ use cfg_if::cfg_if; // see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts cfg_if! { - if #[cfg(not(any(feature = "csr", feature = "hydrate")))] { + if #[cfg(feature = "ssr")] { use leptos_router::join_paths; #[test] diff --git a/router/tests/matcher.rs b/router/tests/matcher.rs index bf358a63d..6ab551fdb 100644 --- a/router/tests/matcher.rs +++ b/router/tests/matcher.rs @@ -4,7 +4,7 @@ use cfg_if::cfg_if; // see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts cfg_if! { - if #[cfg(not(any(feature = "csr", feature = "hydrate")))] { + if #[cfg(feature = "ssr")] { use leptos_router::{params_map, Matcher, PathMatch}; #[test] diff --git a/router/tests/resolve_path.rs b/router/tests/resolve_path.rs index 61dc21e12..d83b37552 100644 --- a/router/tests/resolve_path.rs +++ b/router/tests/resolve_path.rs @@ -4,7 +4,7 @@ use cfg_if::cfg_if; // see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts cfg_if! { - if #[cfg(not(any(feature = "csr", feature = "hydrate")))] { + if #[cfg(feature = "ssr")] { use leptos_router::{normalize, resolve_path}; #[test]