Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cecton committed Jul 20, 2022
1 parent d264bd7 commit 3d1b49e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/yew/src/html/component/mod.rs
Expand Up @@ -292,8 +292,12 @@ mod tests {
let ctx = Context {
scope: Scope::new(None),
props: Rc::new(()),
#[cfg(feature = "hydration")]
creation_mode: crate::html::RenderMode,
#[cfg(feature = "hydration")]
prepared_state: None,
};
assert!(comp.update(&ctx, ()));
assert!(comp.changed(&ctx));
assert!(Component::update(&mut comp, &ctx, ()));
assert!(Component::changed(&mut comp, &ctx));
}
}

0 comments on commit 3d1b49e

Please sign in to comment.