Update desktop entry test case with mime types

This commit is contained in:
Gregory 2021-04-24 22:36:49 -04:00
parent 865e00a6e5
commit 3676ed84d4
No known key found for this signature in database
GPG key ID: 2E44FAEEDC94B1E2
2 changed files with 5 additions and 2 deletions

View file

@ -148,7 +148,9 @@ mod tests {
#[test]
fn complex_exec() {
let path = PathBuf::from("tests/cmus.desktop");
parse_file(&*path).unwrap();
let entry = parse_file(Path::new("tests/cmus.desktop")).unwrap();
assert_eq!(entry.mimes.len(), 2);
assert_eq!(entry.mimes[0].essence_str(), "audio/mp3");
assert_eq!(entry.mimes[1].essence_str(), "audio/ogg");
}
}

View file

@ -9,3 +9,4 @@ Name=cmus-remote
Comment=Music player cmus-remote control
NoDisplay=true
Icon=cmus
MimeType=audio/mp3;audio/ogg;