Enable yew-router tests in CI

This commit is contained in:
Justin Starry 2020-04-28 20:42:36 +08:00 committed by mergify[bot]
parent 9c0951513d
commit 9a7acdd58c
2 changed files with 8 additions and 2 deletions

View File

@ -7,12 +7,15 @@ set -euxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_
&& cargo test --doc --features doc_test,wasm_test,yaml,msgpack,cbor,toml \
--features std_web,agent,services --no-default-features)
(cd yew-functional \
&& cargo test --target wasm32-unknown-unknown)
(cd yew-functional && cargo test --target wasm32-unknown-unknown)
(cd yew-macro \
&& cargo test --test macro_test \
&& cargo test --test derive_props_test \
&& cargo test --doc)
(cd yew-router && cargo test)
(cd yew-router-macro && cargo test)
(cd yew-router-route-parser && cargo test)
(cd yew-stdweb && cargo test --target wasm32-unknown-unknown --features wasm_test)

View File

@ -35,6 +35,9 @@ impl<STATE> RouterState for STATE where STATE: RouteState + PartialEq {}
/// # fn update(&mut self, msg: Self::Message) -> ShouldRender {
/// # false
/// # }
/// # fn change(&mut self, props: Self::Properties) -> ShouldRender {
/// # false
/// # }
///
/// fn view(&self) -> VNode {
/// html! {