Skip to main content

assert_renders_to

Macro assert_renders_to 

Source
macro_rules! assert_renders_to {
    ($html:expr, $expected:expr $(,)?) => { ... };
}
Expand description

Convenience: assert a rendered Html (or &str) exactly matches expected. Mostly useful for trivial leaf components; larger diffs belong in insta snapshots.