fixup! fix(package): preserve ".yazi" extension in package name

This commit is contained in:
Mika Vilpas 2024-05-09 16:24:56 +03:00
parent e31cd97154
commit 928e0c6ee9

View file

@ -80,22 +80,6 @@ impl Package {
mod tests {
use super::*;
#[test]
fn test_adds_yazi_suffix() {
// if a package doesn't have a suffix, it should add ".yazi" to the end
let package = Package::new("abcd/my-plugin.yazi", None);
assert_eq!(package, Package {
repo: "abcd/my-plugin.yazi".to_owned(),
child: "".to_owned(),
commit: "".to_owned(),
is_flavor: false,
});
assert_eq!(package.use_(), "abcd/my-plugin.yazi");
assert_eq!(package.name(), Some("my-plugin.yazi"));
assert_eq!(package.remote(), "https://github.com/abcd/my-plugin.yazi.git");
}
#[test]
fn test_supports_subdirectories() {
let package = Package::new("yazi-rs/flavors#catppuccin-mocha.yazi", None);