fix: tests pass

This commit is contained in:
Jonathan Kelley committed 2022-03-04 13:16:37 -05:00
1 parent 06d4a5640b
commit c7627f0b93
10 files changed
+33 -18

No files matched your search

+2 -1
View File
@@ -12,13 +12,14 @@ fn generates_without_error() {
let out = dioxus_ssr::render_vdom(&app);
assert_eq!(out, "<nav>navbar</nav><h1>Home</h1>");
assert_eq!(out, "<nav>navbar</nav>default<!--placeholder-->");
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
Router {
nav { "navbar" }
Route { to: "/", "default" }
Route { to: "/home", Home {} }
}
})