Merge pull request #256 from gbj/router-tests

Fix router tests when no features enabled
This commit is contained in:
Greg Johnston 2023-01-07 07:36:51 -05:00 committed by GitHub
commit 825245b65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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]