test: assert info and help output (#1482)

Co-authored-by: James Hegedus <jthegedus@hey.com>
This commit is contained in:
Edwin Kofler 2023-02-19 03:10:05 -08:00 committed by GitHub
parent dd8d3999d4
commit cd4c3f9698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -73,5 +73,9 @@ EOF
run asdf help run asdf help
[ "$status" -eq 0 ] [ "$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' ]]
} }

View File

@ -23,5 +23,10 @@ teardown() {
run asdf info run asdf info
[ "$status" -eq 0 ] [ "$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'* ]]
} }