mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 23:04:24 +00:00
Merge pull request #256 from gbj/router-tests
Fix router tests when no features enabled
This commit is contained in:
commit
825245b65f
4 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue