fix(examples): keep test updates lower-aware

Move canonical example test helpers and docs off direct slot render shortcuts so even test-only slot updates use generated lower-aware HTML paths.

req: component/003

req: runtime/001

req: examples/003
This commit is contained in:
slhx agent
2026-06-02 01:59:25 +02:00
parent a1e3085437
commit fa00128c9b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ mod tests {
#[test]
fn kanban_board_updates_generated_slot() {
fn render_board() -> impl IntoEffect {
board::slots::board.html(slhx::render(&empty_board()))
board::slots::board.html(super::ui::render(&empty_board()))
}
let effect = inspect(render_board());
+1 -1
View File
@@ -30,7 +30,7 @@ mod tests {
fn techdemo_uses_generated_slots_for_multi_target_updates() {
fn update() -> impl IntoEffect {
(
slots::hero_metrics.html(slhx::render(&FastMetric { label: "fast" })),
slots::hero_metrics.html(super::ui::render(&FastMetric { label: "fast" })),
slots::notice.text("typed"),
)
}
+1 -1
View File
@@ -121,7 +121,7 @@ mod tests {
fn page_swap_updates_content_and_history() {
fn load_docs() -> impl IntoEffect {
(
page_swap::slots::content.html(slhx::render(&DocsContent {
page_swap::slots::content.html(page_swap::render(&DocsContent {
message: "This page was swapped.",
})),
page_swap::slots::title.text("Docs"),