mirror of
https://github.com/chmln/handlr.git
synced 2024-11-14 05:29:28 +01:00
Update desktop entry test case with mime types
This commit is contained in:
parent
865e00a6e5
commit
3676ed84d4
2 changed files with 5 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,3 +9,4 @@ Name=cmus-remote
|
|||
Comment=Music player cmus-remote control
|
||||
NoDisplay=true
|
||||
Icon=cmus
|
||||
MimeType=audio/mp3;audio/ogg;
|
||||
|
|
Loading…
Reference in a new issue