use html_parser::{Dom, Result};
use indoc::indoc;
use insta::assert_json_snapshot;
#[test]
fn it_can_parse_svg() -> Result<()> {
let html = indoc!(
r#"
"#
);
let dom = Dom::parse(html)?;
assert_json_snapshot!(dom);
Ok(())
}
#[test]
fn it_can_parse_complex_svg() {
let svg = indoc!(
r#"
"#
);
assert!(Dom::parse(&svg).is_ok());
}