#[macro_use] extern crate plaster; #[macro_use] extern crate wasm_bindgen_test; wasm_bindgen_test_configure!(run_in_browser); use plaster::prelude::*; use plaster::virtual_dom::VNode; struct Comp; #[derive(PartialEq, Clone)] struct Props { field_1: u32, field_2: u32, } impl Default for Props { fn default() -> Self { Props { field_1: 0, field_2: 0, } } } impl Component for Comp { type Message = (); type Properties = Props; fn create(_: Self::Properties, _: ComponentLink) -> Self { Comp } fn update(&mut self, _: Self::Message) -> ShouldRender { unimplemented!(); } } impl Renderable for Comp { fn view(&self) -> Html { unimplemented!(); } } #[wasm_bindgen_test] fn set_properties_to_component() { let _: VNode = html! { }; let _: VNode = html! { }; let _: VNode = html! { }; let _: VNode = html! { }; let props = Props { field_1: 1, field_2: 1, }; let _: VNode = html! { }; }