mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
test dehtml for pre-tag (wrote that little test to test the new coverage script :)[D
This commit is contained in:
@@ -392,6 +392,13 @@ mod tests {
|
||||
assert_eq!(txt.trim(), "lots of text");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_pre_tag() {
|
||||
let input = "<html><pre>\ntwo\nlines\n</pre></html>";
|
||||
let txt = dehtml(input).unwrap();
|
||||
assert_eq!(txt.trim(), "two\nlines");
|
||||
}
|
||||
|
||||
#[async_std::test]
|
||||
async fn test_quote_div() {
|
||||
let input = include_str!("../test-data/message/gmx-quote-body.eml");
|
||||
|
||||
Reference in New Issue
Block a user