Skip to content

Commit 471e4f0

Browse files
committed
update tests with tera formatting changes
partial revert of 94ba4fa since tera also reverted the behavior: https://github.com/Keats/tera/blob/master/CHANGELOG.md#1171-2022-09-19
1 parent 48d97dd commit 471e4f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/web/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,18 +715,18 @@ mod test {
715715
let web = env.frontend();
716716

717717
let foo_crate = kuchiki::parse_html().one(web.get("/crate/foo/0.0.1").send()?.text()?);
718-
for value in &["60.0%", "6", "10", "2", "1"] {
718+
for value in &["60%", "6", "10", "2", "1"] {
719719
assert!(foo_crate
720720
.select(".pure-menu-item b")
721721
.unwrap()
722-
.any(|e| e.text_contents().contains(value)));
722+
.any(|e| dbg!(e.text_contents()).contains(value)));
723723
}
724724

725725
let foo_doc = kuchiki::parse_html().one(web.get("/foo/0.0.1/foo").send()?.text()?);
726726
assert!(foo_doc
727727
.select(".pure-menu-link b")
728728
.unwrap()
729-
.any(|e| e.text_contents().contains("60.0%")));
729+
.any(|e| e.text_contents().contains("60%")));
730730

731731
Ok(())
732732
});

0 commit comments

Comments
 (0)