Clone in a terminal:
Commit cfa78a9
Johan Mattsson - 2026-07-14T23:06:49+00:00
cfa78a9b3143da9633c84aa80256a7fea04562b0johan.mattsson.m@gmail.com

Small test component

Changed files (1)

Diff

diff --git a/tests/smallcomponent.rs b/tests/smallcomponent.rsindex 8f200bb..37b796e 100644--- a/tests/smallcomponent.rs+++ b/tests/smallcomponent.rs@@ -29,5 +29,20 @@ fn test_small_component() {  #[component("test-component")] struct Test1 {}- impl Component for Test1Component {}++#[wasm_bindgen_test]+fn test_nothing_component() {+    common::setup_test();++    let content = html! {{+        <nothing-component></nothing-component>+    }};++    inner_html("#test-div", &content).unwrap();+    assert!(true); // just to check if it compiles+}++#[component("nothing-component")]+struct Nothing {}+impl Component for NothingComponent {}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112