use html_editor::operation::*; use html_editor::parse; const HTML: &str = r#"
Hello World
"#; #[test] fn original_html() { let html = parse(HTML).unwrap().html(); assert_eq!(html, HTML); } #[test] fn trimmed_html() { let html = parse(HTML).unwrap().trim().html(); assert_eq!( html, r#"
HelloWorld
"# ); }