]> git.r.bdr.sh - rbdr/page/blobdiff - src/file_finder.rs
Update version of gema_texto
[rbdr/page] / src / file_finder.rs
index 0512146d3e5c93e53658761fab12f09fb64e189e..ef57950d366adb5bd325c86840b179277c4fa99b 100644 (file)
@@ -78,6 +78,7 @@ mod tests {
         create_dir_all(test_dir.join("nested")).expect("Could not create nested test directory");
         create_dir_all(test_dir.join("assets")).expect("Could not create assets test directory");
         create_test_file(&test_dir.join("_layout.html"), "");
         create_dir_all(test_dir.join("nested")).expect("Could not create nested test directory");
         create_dir_all(test_dir.join("assets")).expect("Could not create assets test directory");
         create_test_file(&test_dir.join("_layout.html"), "");
+        create_test_file(&test_dir.join("notalayout.html"), "");
         create_test_file(&test_dir.join("nested/nested.gmi"), "");
         create_test_file(&test_dir.join("assets/style.css"), "");
         create_test_file(&test_dir.join("image.png"), "");
         create_test_file(&test_dir.join("nested/nested.gmi"), "");
         create_test_file(&test_dir.join("assets/style.css"), "");
         create_test_file(&test_dir.join("image.png"), "");
@@ -89,9 +90,9 @@ mod tests {
                 Some("gmi") => assert_eq!(file.file_type, FileType::Gemini),
                 Some("html") => {
                     if file.path.ends_with("_layout.html") {
                 Some("gmi") => assert_eq!(file.file_type, FileType::Gemini),
                 Some("html") => {
                     if file.path.ends_with("_layout.html") {
-                        assert_eq!(file.file_type, FileType::Layout)
+                        assert_eq!(file.file_type, FileType::Layout);
                     } else {
                     } else {
-                        assert_eq!(file.file_type, FileType::File)
+                        assert_eq!(file.file_type, FileType::File);
                     }
                 }
                 _ => assert_eq!(file.file_type, FileType::File),
                     }
                 }
                 _ => assert_eq!(file.file_type, FileType::File),