chore: update tests

This commit is contained in:
Greg Johnston 2024-08-02 10:29:48 -04:00
parent 00fb8f29d3
commit 25f0186098
5 changed files with 7 additions and 6 deletions

View file

@ -1,4 +1,4 @@
use leptos::*;
use leptos::prelude::*;
#[component]
pub fn TestComponent(

View file

@ -1,5 +1,5 @@
use core::num::NonZeroUsize;
use leptos::*;
use leptos::prelude::*;
#[component]
fn Component(

View file

@ -1,4 +1,4 @@
use leptos::*;
use leptos::prelude::*;
#[component]
fn missing_scope() {}

View file

@ -1,7 +1,8 @@
use leptos::*;
use leptos::prelude::*;
#[server(endpoint = "my_path", FooBar)]
pub async fn positional_argument_follows_keyword_argument() -> Result<(), ServerFnError> {
pub async fn positional_argument_follows_keyword_argument(
) -> Result<(), ServerFnError> {
Ok(())
}

View file

@ -43,7 +43,7 @@ mod shared;
////! crate that is enabled).
////!
////! ```rust,ignore
////! use leptos::*;
////! use leptos::prelude::*;
////! #[server(ReadFromDB)]
////! async fn read_posts(how_many: usize, query: String) -> Result<Vec<Posts>, ServerFnError> {
////! // do some server-only work here to access the database