Skip to content

Commit

Permalink
A different approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Sep 13, 2024
1 parent bb26ccf commit 48eedfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yew/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ mod app_handle;
#[cfg(feature = "csr")]
mod renderer;

#[cfg(all(feature = "csr", target_arch = "wasm32"))]
#[cfg(feature = "csr")]
#[cfg(test)]
pub(crate) mod tests;

Expand Down
2 changes: 2 additions & 0 deletions packages/yew/src/tests/layout_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ impl Component for Comp {
}

#[derive(Debug)]
#[cfg_attr(not(target_arch = "wasm32"), allow(unused))]
pub(crate) struct TestLayout<'a> {
pub name: &'a str,
pub node: VNode,
pub expected: &'a str,
}

#[cfg_attr(not(target_arch = "wasm32"), allow(unused))]
pub(crate) fn diff_layouts(layouts: Vec<TestLayout<'_>>) {
let document = gloo::utils::document();
let scope: AnyScope = AnyScope::test();
Expand Down

0 comments on commit 48eedfa

Please sign in to comment.