Fix failed fish_plugins test

This commit is contained in:
Jorge Bucaran 2024-09-11 01:04:26 +09:00
parent a6bf0e5b9e
commit 1f0dc2b497
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -20,6 +20,10 @@ set --local BASENAME --regex -- '[^/]+$'
fisher update tests/ponyo >/dev/null fisher update tests/ponyo >/dev/null
) "$ponyo" = "pyon pyon pyon" ) "$ponyo" = "pyon pyon pyon"
@test fish_plugins (
string match --regex -- "[^/]+\$" <$__fish_config_dir/fish_plugins | string join " "
) = "fisher fishtape ponyo"
@test "fisher remove" ( @test "fisher remove" (
fisher remove tests/ponyo >/dev/null fisher remove tests/ponyo >/dev/null
) "$ponyo" = "" ) "$ponyo" = ""
@ -27,7 +31,3 @@ set --local BASENAME --regex -- '[^/]+$'
@test "has state" -n ( @test "has state" -n (
set --names | string match \*fisher\* | string collect set --names | string match \*fisher\* | string collect
) )
@test fish_plugins (
fisher list | string collect
) = (read --null <$__fish_config_dir/fish_plugins | string collect)