fix ssr tests
This commit is contained in:
1 parent
b039d6acc0
commit
16d5d00bdf
8 files changed
+36
-32
No files matched your search
@@ -228,7 +228,7 @@ impl Renderer {
|
||||
fn to_string_works() {
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn app(_: ()) -> Element {
|
||||
fn app() -> Element {
|
||||
let dynamic = 123;
|
||||
let dyn2 = "</diiiiiiiiv>"; // this should be escaped
|
||||
|
||||
@@ -288,7 +288,7 @@ fn to_string_works() {
|
||||
fn empty_for_loop_works() {
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn app(_: ()) -> Element {
|
||||
fn app() -> Element {
|
||||
render! {
|
||||
div { class: "asdasdasd",
|
||||
for _ in (0..5) {
|
||||
@@ -331,7 +331,7 @@ fn empty_for_loop_works() {
|
||||
fn empty_render_works() {
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn app(_: ()) -> Element {
|
||||
fn app() -> Element {
|
||||
render! {}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user