Skip to main content

assert_has_data_attr

Function assert_has_data_attr 

Source
pub fn assert_has_data_attr(output: &RenderOutput, name: &str) -> bool
Expand description

Assert that a RenderOutput has a data attribute with the given name.

Returns true if a data-{name} attribute is present.