We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29a34c3 commit a51db59Copy full SHA for a51db59
src/web/sitemap.rs
@@ -142,7 +142,17 @@ mod tests {
142
wrapper(|env| {
143
let web = env.frontend();
144
for file in std::fs::read_dir("templates/core/about")? {
145
- assert_success(path?, web)?;
+ use std::ffi::OsStr;
146
+
147
+ let file_path = file?.path();
148
+ if file_path.extension() != Some(OsStr::new("html"))
149
+ || file_path.file_stem() == Some(OsStr::new("index"))
150
+ {
151
+ continue;
152
+ }
153
+ let filename = file_path.file_stem().unwrap().to_str().unwrap();
154
+ let path = format!("/about/{}", filename);
155
+ assert_success(&path, web)?;
156
}
157
assert_success("/about", web)
158
})
0 commit comments