From 9a7acdd58ca4611ed49c5922f1d684845459de5b Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Tue, 28 Apr 2020 20:42:36 +0800 Subject: [PATCH] Enable yew-router tests in CI --- ci/run_tests.sh | 7 +++++-- yew-router/src/router.rs | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ci/run_tests.sh b/ci/run_tests.sh index bb46007f7..8fa83904c 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -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) diff --git a/yew-router/src/router.rs b/yew-router/src/router.rs index 46f0091d4..c9538429e 100644 --- a/yew-router/src/router.rs +++ b/yew-router/src/router.rs @@ -35,6 +35,9 @@ impl 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! {