mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-15 18:42:46 +08:00
33 lines
806 B
Fish
33 lines
806 B
Fish
function describe_omf_list_tests
|
|
function before_all
|
|
set -gx CI WORKAROUND
|
|
end
|
|
|
|
function it_can_list_plugins
|
|
set -l list_output (omf list -p)
|
|
assert 0 = $status
|
|
assert "$list_output" = "fish-spec omf"
|
|
end
|
|
|
|
function it_can_list_themes
|
|
set -l list_output (omf list -t)
|
|
assert 0 = $status
|
|
assert "$list_output" = "default"
|
|
end
|
|
|
|
function it_can_list_insttalled_plugins
|
|
set -l output (omf remove apt 2> /dev/null)
|
|
set -l output (omf install apt 2> /dev/null)
|
|
set -l list_output (omf list -p)
|
|
assert 0 = $status
|
|
assert "$list_output" = "apt fish-spec omf"
|
|
set -l output (omf remove apt 2> /dev/null)
|
|
end
|
|
|
|
function it_can_list_themes
|
|
set -l list_output (omf list -t)
|
|
assert 0 = $status
|
|
assert "$list_output" = "default"
|
|
end
|
|
end
|