X-Git-Url: https://git.r.bdr.sh/rbdr/page/blobdiff_plain/f08e8d64dce087201089d2b3276b3dfcdb000173..f5ac7b8efb4e0d1dd197ddecbad2b46fd19f5ddb:/src/file_handler/mod.rs diff --git a/src/file_handler/mod.rs b/src/file_handler/mod.rs index e8a446b..4e4bed9 100644 --- a/src/file_handler/mod.rs +++ b/src/file_handler/mod.rs @@ -208,11 +208,16 @@ mod tests { let handler = FileHandler { strategies: vec![Box::new(mock_strategy)], - layout: None, + layout: Some("None".to_string()), }; let path = PathBuf::from("test.whatever"); + let file = File{ + path: path.clone(), + file_type: FileType::Gemini + }; assert!(matches!(handler.identify(&path), FileType::Gemini)); + handler.handle(&path, &path, &path, &file); } #[test]