mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
test: assert info and help output (#1482)
Co-authored-by: James Hegedus <jthegedus@hey.com>
This commit is contained in:
parent
dd8d3999d4
commit
cd4c3f9698
@ -73,5 +73,9 @@ EOF
|
||||
run asdf help
|
||||
|
||||
[ "$status" -eq 0 ]
|
||||
# TODO: Assert asdf help output is printed
|
||||
[[ $output == 'version: v'* ]]
|
||||
[[ $output == *$'MANAGE PLUGINS\n'* ]]
|
||||
[[ $output == *$'MANAGE PACKAGES\n'* ]]
|
||||
[[ $output == *$'UTILS\n'* ]]
|
||||
[[ $output == *$'"Late but latest"\n-- Rajinikanth' ]]
|
||||
}
|
||||
|
@ -23,5 +23,10 @@ teardown() {
|
||||
run asdf info
|
||||
|
||||
[ "$status" -eq 0 ]
|
||||
# TODO: Assert asdf info output is printed
|
||||
[[ $output == *$'OS:\n'* ]]
|
||||
[[ $output == *$'SHELL:\n'* ]]
|
||||
[[ $output == *$'ASDF VERSION:\n'* ]]
|
||||
[[ $output == *$'ASDF ENVIRONMENT VARIABLES:\n'* ]]
|
||||
[[ $output == *$'ASDF INSTALLED PLUGINS:\n'* ]]
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user