Fix router tests when no features enabled

This commit is contained in:
Greg Johnston 2023-01-07 07:36:27 -05:00
parent 05ffd8c989
commit ef067f18e1
4 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]