mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fixup! fix(package): preserve ".yazi" extension in package name
This commit is contained in:
parent
e31cd97154
commit
928e0c6ee9
1 changed files with 0 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue