From 928e0c6ee935a2746b47dcbc00cc9d1bd9afbe22 Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Thu, 9 May 2024 16:24:56 +0300 Subject: [PATCH] fixup! fix(package): preserve ".yazi" extension in package name --- yazi-cli/src/package/package.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/yazi-cli/src/package/package.rs b/yazi-cli/src/package/package.rs index 99b1dfd0..73447202 100644 --- a/yazi-cli/src/package/package.rs +++ b/yazi-cli/src/package/package.rs @@ -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);