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;
|
use cfg_if::cfg_if;
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(not(any(feature = "csr", feature = "hydrate")))] {
|
if #[cfg(feature = "ssr")] {
|
||||||
use leptos_router::expand_optionals;
|
use leptos_router::expand_optionals;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -4,7 +4,7 @@ use cfg_if::cfg_if;
|
||||||
// see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts
|
// see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(not(any(feature = "csr", feature = "hydrate")))] {
|
if #[cfg(feature = "ssr")] {
|
||||||
use leptos_router::join_paths;
|
use leptos_router::join_paths;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -4,7 +4,7 @@ use cfg_if::cfg_if;
|
||||||
// see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts
|
// see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(not(any(feature = "csr", feature = "hydrate")))] {
|
if #[cfg(feature = "ssr")] {
|
||||||
use leptos_router::{params_map, Matcher, PathMatch};
|
use leptos_router::{params_map, Matcher, PathMatch};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -4,7 +4,7 @@ use cfg_if::cfg_if;
|
||||||
// see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts
|
// see https://github.com/solidjs/solid-router/blob/main/test/utils.spec.ts
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(not(any(feature = "csr", feature = "hydrate")))] {
|
if #[cfg(feature = "ssr")] {
|
||||||
use leptos_router::{normalize, resolve_path};
|
use leptos_router::{normalize, resolve_path};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue