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:
@@ -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());
|
||||
|
||||
@@ -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"),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user