Fix tests

This commit is contained in:
Kitaiti Makoto 2021-01-02 09:00:07 +09:00
parent 4e3ed0f4c1
commit f1990b782d

View file

@ -488,12 +488,12 @@ pub(crate) mod tests {
); );
assert_eq!( assert_eq!(
inst.long_description_html, inst.long_description_html,
SafeString::new("<p><a href=\"/with_link\">long_description</a></p>\n") SafeString::new("<p dir=\"auto\"><a href=\"/with_link\">long_description</a></p>\n")
); );
assert_eq!(inst.short_description.get(), "[short](#link)"); assert_eq!(inst.short_description.get(), "[short](#link)");
assert_eq!( assert_eq!(
inst.short_description_html, inst.short_description_html,
SafeString::new("<p><a href=\"#link\">short</a></p>\n") SafeString::new("<p dir=\"auto\"><a href=\"#link\">short</a></p>\n")
); );
assert_eq!(inst.default_license, "CC-BY-SAO".to_owned()); assert_eq!(inst.default_license, "CC-BY-SAO".to_owned());
Ok(()) Ok(())