From fe26274f38b08d756ef2d1b63f379958d3d99ce1 Mon Sep 17 00:00:00 2001 From: Aravinda Rao Date: Mon, 18 May 2020 21:48:27 +0530 Subject: [PATCH] Ensure consistency in indentation for message shown when no versions installed --- lib/commands/command-list.bash | 2 +- test/list_command.bats | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands/command-list.bash b/lib/commands/command-list.bash index 55e074ad..9a5274a1 100644 --- a/lib/commands/command-list.bash +++ b/lib/commands/command-list.bash @@ -31,7 +31,7 @@ display_installed_versions() { echo " $version" done else - display_error 'No versions installed' + display_error ' No versions installed' fi } diff --git a/test/list_command.bats b/test/list_command.bats index 83a8ec29..f06d573c 100644 --- a/test/list_command.bats +++ b/test/list_command.bats @@ -26,7 +26,7 @@ teardown() { run asdf install dummy 1.0 run asdf install tummy 2.0 run asdf list - [ "$(echo -e "dummy\n 1.0\nmummy\nNo versions installed\ntummy\n 2.0")" == "$output" ] + [ "$(echo -e "dummy\n 1.0\nmummy\n No versions installed\ntummy\n 2.0")" == "$output" ] [ "$status" -eq 0 ] }