style: apply rustfmt to classify_file_kind tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-04-05 13:19:44 +02:00
parent 2a5386a9a8
commit 4bbd1f4b29

View File

@@ -1523,7 +1523,10 @@ fn test_non_yml_file_uses_filename_as_title() {
#[test]
fn test_classify_file_kind_yml_is_text() {
assert_eq!(classify_file_kind(Path::new("views/active-projects.yml")), "text");
assert_eq!(
classify_file_kind(Path::new("views/active-projects.yml")),
"text"
);
assert_eq!(classify_file_kind(Path::new("config.yaml")), "text");
assert_eq!(classify_file_kind(Path::new("data.json")), "text");
assert_eq!(classify_file_kind(Path::new("script.py")), "text");
@@ -1545,7 +1548,11 @@ fn test_classify_file_kind_unknown_is_binary() {
#[test]
fn test_non_md_file_gets_text_file_kind() {
let dir = TempDir::new().unwrap();
create_test_file(dir.path(), "views/my-view.yml", "name: My View\nicon: rocket\n");
create_test_file(
dir.path(),
"views/my-view.yml",
"name: My View\nicon: rocket\n",
);
let entry = super::parse_non_md_file(&dir.path().join("views/my-view.yml"), None).unwrap();
assert_eq!(entry.file_kind, "text");
assert_eq!(entry.title, "My View");